Skip to content

Commit b5a0798

Browse files
test(mcp): update handlers assertions for paged analyzers
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
1 parent 580dcfc commit b5a0798

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

internal/mcp/handlers_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ func TestPrompts_UsesDepsInterfaces(t *testing.T) {
523523
_ = rpcResp
524524

525525
// Check that mockLF.findCalled is true to verify that Deps.LargefuncAnalyzer was used.
526-
if !mockLF.findCalled {
527-
t.Error("expected prompts.go to use Deps.LargefuncAnalyzer instead of inline creation")
526+
if !mockLF.findPageCalled {
527+
t.Error("expected prompts.go to use Deps.LargefuncAnalyzer.FindPage instead of inline creation")
528528
}
529529
}
530530

@@ -2526,8 +2526,8 @@ func TestFindLargeFunctions_DefaultThreshold(t *testing.T) {
25262526
if result.IsError {
25272527
t.Fatalf("find_large_functions error: %s", getTextContent(result))
25282528
}
2529-
if !mockLF.findCalled {
2530-
t.Error("expected Find to be called")
2529+
if !mockLF.findPageCalled {
2530+
t.Error("expected FindPage to be called")
25312531
}
25322532
}
25332533

@@ -3407,8 +3407,8 @@ func TestFindDeadCode_FilterByKind(t *testing.T) {
34073407
"kinds": []any{"function"},
34083408
})
34093409

3410-
if !mockDC.findCalled {
3411-
t.Error("expected Find to be called")
3410+
if !mockDC.findPageCalled {
3411+
t.Error("expected FindPage to be called")
34123412
}
34133413
}
34143414

@@ -3422,8 +3422,8 @@ func TestFindDeadCode_FilterByFilePattern(t *testing.T) {
34223422
"path": "internal/",
34233423
})
34243424

3425-
if !mockDC.findCalled {
3426-
t.Error("expected Find to be called")
3425+
if !mockDC.findPageCalled {
3426+
t.Error("expected FindPage to be called")
34273427
}
34283428
}
34293429

0 commit comments

Comments
 (0)