Repository navigation
Conversation
test: 뮤테이션 테스트에서 못 잡은 보안 로직 테스트 보강
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
develop에 쌓인 테스트 보강 커밋 8개를 main에 반영합니다. mutation 테스트에서 살아남은 변이(#92
test/mutation-survivors)를 잡기 위해, 경계값과 예외 경로를 중심으로 테스트를 추가했습니다.src/test아래 테스트 코드변경 내용
1. 딥페이크 탐지 (
domain/deepfakedetection/detector)LlmDeepfakeDetectorEdgeTest(신규) — LLM 응답을 탐지 결과로 바꾸는 과정의 경계값1 정규화 좌표를 이미지 픽셀로 변환, 범위를 벗어난 값은 01로 자르고 크기는 최소 1100, 확신도는 01로 자르고 소수 둘째 자리로 반올림image/png, 아니면image/jpeg로 전달HttpTimeoutException이면TIMEOUT, 그 밖의 오류는AI_SERVER_ERRORHttpDeepfakeDetectorMimeTest(신규) — HTTP 탐지기가 설명기에 넘기는 MIME 판별image/pngimage/jpegProvenanceSignalExtractorEdgeTest(신규) — AI 생성 출처 신호 추출SCAN_LIMIT) 안의 AI 표시(trainedAlgorithmicMedia)만 인식jumb와c2pa가 둘 다 있어야 신호로 인식IEND뒤 청크 무시, 길이가 파일 끝을 넘으면 멈추고 앞의 결과만 유지, 긴 청크(300B, 70KB)의 길이를 바르게 읽음invokeai_metadata,sd-metadata,parameters,workflow등), 압축 텍스트(zTXt, 압축된iTXt)는 키워드만 보고 본문은 읽지 않음2. AI 클라이언트 (
global/ai)GroqVisionClientReplyTest(신규) — Groq 응답 처리choices가 없거나 비어 있으면IllegalStateExceptionmessage가 없거나content가 비었으면 예외choices가 여러 개면 첫 번째만 사용3. 파일 (
global/file)UploadFileTypeTest(신규) — 업로드 파일 형식 판별ftyp브랜드가qt이면 MOV, 그 외는 MP4ftyp가 아니거나 12바이트 미만이면 판별하지 않음FileUrlSignerTest(수정) — URL 서명/uploads/profile/공개 경로는 서명하지 않고, 그 밖의/uploads/경로는 서명,/api경로는 대상 아님..표기가 있으면 서명 필요4. 레이트리밋 (
global/ratelimit)AnonymousIpRateLimiterTest(수정) — IP 기록 정리포함된 커밋
참고
🤖 Generated with Claude Code