MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestResolve_cursor

Function TestResolve_cursor

internal/agent/resolve_test.go:139–151  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

137}
138
139func TestResolve_cursor(t *testing.T) {
140 got := mustResolve(t, "cursor", "", nil)
141 if got.Name() != "Cursor" {
142 t.Errorf("Resolve(cursor) name = %q, want Cursor", got.Name())
143 }
144 if got.CLIPath() != "agent" {
145 t.Errorf("Resolve(cursor) CLIPath = %q, want agent", got.CLIPath())
146 }
147 got = mustResolve(t, "cursor", "/usr/local/bin/agent", nil)
148 if got.CLIPath() != "/usr/local/bin/agent" {
149 t.Errorf("Resolve(cursor, path) CLIPath = %q, want /usr/local/bin/agent", got.CLIPath())
150 }
151}
152
153func TestResolve_unknownProvider(t *testing.T) {
154 _, err := Resolve("typo", "", nil)

Callers

nothing calls this directly

Calls 3

mustResolveFunction · 0.85
NameMethod · 0.65
CLIPathMethod · 0.65

Tested by

no test coverage detected