MCPcopy
hub / github.com/larksuite/cli / TestResolveInput_AtFile_NotFound

Function TestResolveInput_AtFile_NotFound

internal/cmdutil/resolve_test.go:146–154  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

144}
145
146func TestResolveInput_AtFile_NotFound(t *testing.T) {
147 fio := &localfileio.LocalFileIO{}
148 dir := t.TempDir()
149 TestChdir(t, dir)
150 _, err := ResolveInput("@missing.json", nil, fio)
151 if err == nil || !strings.Contains(err.Error(), "cannot read file") {
152 t.Errorf("expected read error, got: %v", err)
153 }
154}
155
156func TestResolveInput_AtFile_PathValidation(t *testing.T) {
157 fio := &localfileio.LocalFileIO{}

Callers

nothing calls this directly

Calls 4

TestChdirFunction · 0.85
ResolveInputFunction · 0.85
ContainsMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected