MCPcopy
hub / github.com/pelletier/go-toml / TestProcessMainFilesInPlaceErrRead

Function TestProcessMainFilesInPlaceErrRead

internal/cli/cli_test.go:125–134  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

123}
124
125func TestProcessMainFilesInPlaceErrRead(t *testing.T) {
126 p := Program{
127 Fn: dummyFileFn,
128 Inplace: true,
129 }
130
131 exit := p.main([]string{"/this/path/is/invalid"}, os.Stdin, os.Stdout, os.Stderr)
132
133 assert.Equal(t, -1, exit)
134}
135
136func TestProcessMainFilesInPlaceFailFn(t *testing.T) {
137 dir := t.TempDir()

Callers

nothing calls this directly

Calls 2

mainMethod · 0.95
EqualFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…