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

Function Test_PersistOff

acceptance/testenv/testenv_test.go:199–213  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

197}
198
199func Test_PersistOff(t *testing.T) {
200 var persisted bool
201 persister = func(filename string, data []byte, perm fs.FileMode) error {
202 persisted = true
203 return nil
204 }
205
206 ctx := context.WithValue(context.TODO(), PersistStubEnvironment, false)
207
208 persisting, err := Persist(ctx)
209
210 assert.NoError(t, err)
211 assert.False(t, persisting)
212 assert.False(t, persisted)
213}
214
215func Test_TestContainersRequest(t *testing.T) {
216 cases := []struct {

Callers

nothing calls this directly

Calls 1

PersistFunction · 0.85

Tested by

no test coverage detected