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

Function TempDir

acceptance/testenv/testenv.go:231–246  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

229}
230
231func TempDir(ctx context.Context) (context.Context, string) {
232 utl := &testUtil{}
233
234 var err error
235 ctx, err = SetupState[testUtil](ctx, &utl)
236 if err != nil {
237 panic(err)
238 }
239
240 if utl.tempDir == "" {
241 t := Testing(ctx)
242 utl.tempDir = t.TempDir()
243 }
244
245 return ctx, utl.tempDir
246}
247
248// TestContainersRequest modifies the req to keep the container running after the test if PersistStubEnvironment is set to true in the ctx
249func TestContainersRequest(ctx context.Context, req testcontainers.ContainerRequest) testcontainers.ContainerRequest {

Callers 1

variablesFunction · 0.92

Calls 1

TestingFunction · 0.85

Tested by

no test coverage detected