범인찾기 v1.3.2: 외부 전적 사이트 접속 제거 — OP.GG · LOL.PS 는 계산법만 참고
- 사용자 결정: 실제 OP.GG 연결이 아니라 계산법 참고 → 분석 때 OP.GG 를 찾아보던 opgg.ts · 결과의 OP.GG 점수 · 조회 상태 · 지시문 줄 · Riot 태그/경기 찾기 정보 제거 - 남은 것: 기록 점수(OP.GG OP스코어 계산법, 앱이 경기 기록으로 계산) · 10/15분 라인전(LOL.PS 정의) - 실제 E2E (Claude Opus 5.5 high, 외부 접속 없음): 발로란트 33초 $0.138, 롤 36초 $0.123 - 테스트: 앱 40 · 서버 16 통과 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -56,8 +56,8 @@ test('범인찾기: 분석 가능 판정과 AI 자료', () => {
|
||||
// 우리 팀이 P1~P5, 승한은 음성O, 디스코드 계정이 없는 상대는 음성X
|
||||
const p1 = lines.find((l) => l.startsWith('P1 '))!;
|
||||
assert.match(p1, /^P1 승한 우리 제트\(타격대\) \d+\/\d+\/\d+ ACS\d+ ADR\d+ KAST\d+% 피해격차[+-]\d+ 첫킬\d+\/첫데스\d+ HS\d+% 설치\d+\/해체\d+ .*음성O$/);
|
||||
// 기록 점수 (OP.GG OP스코어 방식): 10명 모두, 이긴 팀 1등 MVP · 진 팀 1등 ACE
|
||||
const head = lines.findIndex((l) => l.startsWith('# 기록 점수 (0~10, OP.GG OP스코어 방식'));
|
||||
// 기록 점수 (OP.GG OP스코어 계산법): 10명 모두, 이긴 팀 1등 MVP · 진 팀 1등 ACE
|
||||
const head = lines.findIndex((l) => l.startsWith('# 기록 점수 (0~10, OP.GG OP스코어 계산법'));
|
||||
assert.ok(head > 0, '기록 점수 칸');
|
||||
const rl = lines.slice(head + 1, head + 11);
|
||||
assert.ok(rl.every((l, i) => new RegExp(`^P${i + 1} \\d+\\.\\d점 \\d+위/팀\\d위`).test(l)), rl.join('\n'));
|
||||
@@ -68,7 +68,6 @@ test('범인찾기: 분석 가능 판정과 AI 자료', () => {
|
||||
assert.ok(rp.every((r) => r && r.score >= 0 && r.score <= 10 && !r.basic));
|
||||
assert.deepEqual(rp.map((r) => r.rank).sort((a, b) => a - b), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
|
||||
assert.equal(rp.find((r) => r.rank === 1)!.score, Math.max(...rp.map((r) => r.score)));
|
||||
assert.equal(input.lookup?.riotMatchId, 'demo');
|
||||
assert.match(lines.find((l) => l.startsWith('P6 '))!, /상대 .*음성X$/);
|
||||
assert.equal(input.players.find((p) => p.id === 'P2')!.voice, true, '민수는 대화가 있다');
|
||||
assert.equal(input.players.find((p) => p.id === 'P3')!.voice, false);
|
||||
@@ -139,7 +138,7 @@ test('범인찾기: 롤 포지션 · 시야 · 10/15분 지표와 골드 차', (
|
||||
assert.match(input.text, /\n\[e\d+\] \d+:\d+ 킬 P\d+ → P\d+/);
|
||||
assert.match(input.text, /\n\[e\d+\] \d+:\d+ 내셔 남작 처치 우리 팀 · P2\n/);
|
||||
// 기록 점수 + LOL.PS 라인전 점수의 입력 (10 · 15분 맞라이너와 차)
|
||||
assert.match(input.text, /\n# 기록 점수 \(0~10, OP\.GG OP스코어 방식/);
|
||||
assert.match(input.text, /\n# 기록 점수 \(0~10, OP\.GG OP스코어 계산법/);
|
||||
assert.match(input.text, /\nP1 \d+\.\d점 \d+위\/팀\d위.* · 라인전\(vs P6\) 10분 CS[+-][\d,]+ 골드[+-][\d,]+ 경험치[+-][\d,]+ 15분 CS[+-][\d,]+ 골드[+-][\d,]+ 경험치[+-][\d,]+\n/);
|
||||
const p1 = input.players.find((p) => p.id === 'P1')!;
|
||||
const p6 = input.players.find((p) => p.id === 'P6')!;
|
||||
@@ -147,7 +146,6 @@ test('범인찾기: 롤 포지션 · 시야 · 10/15분 지표와 골드 차', (
|
||||
assert.equal(p1.rating!.lane!.at10!.xp, -p6.rating!.lane!.at10!.xp);
|
||||
assert.ok(p1.rating!.lane!.at10!.cs !== undefined && p1.rating!.lane!.at15!.gold !== undefined);
|
||||
assert.equal(input.players.filter((p) => p.rating?.badge).length, 2);
|
||||
assert.equal(p1.tag !== undefined, true);
|
||||
});
|
||||
|
||||
test('범인찾기 API: 목록 · 상세 · 내부 전용 경로', async () => {
|
||||
|
||||
Reference in New Issue
Block a user