MCPcopy Index your code
hub / github.com/commitdev/zero / setupTeardown

Function setupTeardown

internal/generate/generate_test.go:16–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14const baseTestFixturesDir = "../../tests/test_data/generate/"
15
16func setupTeardown(t *testing.T) (func(t *testing.T), string) {
17 tmpDir := filepath.Join(os.TempDir(), "generate")
18 os.MkdirAll(tmpDir, 0755)
19 os.RemoveAll(tmpDir)
20 return func(t *testing.T) {
21 os.RemoveAll(tmpDir)
22 }, tmpDir
23}
24
25func TestGenerateModules(t *testing.T) {
26 teardown, tmpDir := setupTeardown(t)

Callers 1

TestGenerateModulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected