MCPcopy Create free account
hub / github.com/conforma/cli / TestLogFileCreatesTemporaryFile

Function TestLogFileCreatesTemporaryFile

acceptance/log/log_test.go:118–131  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

116}
117
118func TestLogFileCreatesTemporaryFile(t *testing.T) {
119 ctx := context.Background()
120
121 l, _ := LoggerFor(ctx)
122 defer l.Close()
123 defer os.Remove(l.LogFile())
124
125 path := l.LogFile()
126 assert.True(t, strings.Contains(path, "scenario-"))
127 assert.True(t, strings.HasSuffix(path, ".log"))
128
129 _, err := os.Stat(path)
130 assert.NoError(t, err)
131}

Callers

nothing calls this directly

Calls 3

LoggerForFunction · 0.85
CloseMethod · 0.65
LogFileMethod · 0.65

Tested by

no test coverage detected