MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / TestRenameSourceMissing

Function TestRenameSourceMissing

internal/providers/store_test.go:265–271  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

263}
264
265func TestRenameSourceMissing(t *testing.T) {
266 file := providers.File{Endpoints: map[string]providers.Endpoint{}}
267 err := providers.Rename(&file, "alpha", "beta")
268 if !errors.Is(err, providers.ErrNotFound) {
269 t.Fatalf("err = %v, want ErrNotFound", err)
270 }
271}
272
273func TestRenameDestExists(t *testing.T) {
274 file := providers.File{Endpoints: map[string]providers.Endpoint{

Callers

nothing calls this directly

Calls 1

RenameFunction · 0.92

Tested by

no test coverage detected