feat(ai-review 對話收斂): 讀 PR review 留言判斷解決狀態並收斂 findings #45
@@ -120,6 +120,15 @@ describe('judgeConversations', () => {
|
||||
assert.deepEqual(verdicts, [{ idx: 0, verdict: 'open' }]);
|
||||
});
|
||||
|
||||
it('treats an empty AI response array as all open (conservative)', async () => {
|
||||
const items = [{ idx: 0 }, { idx: 1 }];
|
||||
const verdicts = await judgeConversations(items, async () => []);
|
||||
assert.deepEqual(verdicts, [
|
||||
{ idx: 0, verdict: 'open' },
|
||||
{ idx: 1, verdict: 'open' },
|
||||
]);
|
||||
});
|
||||
|
||||
it('ignores entries with unknown verdict or non-integer idx', async () => {
|
||||
const items = [{ idx: 0 }, { idx: 1 }];
|
||||
const chatFn = async () => [
|
||||
|
||||
Reference in New Issue
Block a user