MCPcopy Create free account
hub / github.com/DoNewsCode/core / tearDown

Function tearDown

config/module_test.go:55–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func tearDown() {
56 os.Remove("./testdata/module_test.yaml")
57 os.Remove("./testdata/module_test.json")
58 ioutil.WriteFile("./testdata/module_test_partial.json", []byte("{\n \"foo\": \"bar\"\n}"), os.ModePerm)
59 ioutil.WriteFile("./testdata/module_test_partial.yaml", []byte("# A mock config\nfoo: bar\n"), os.ModePerm)
60}
61
62func TestModule_ProvideCommand_initCmd(t *testing.T) {
63 cases := []struct {

Callers 1

Calls 1

RemoveMethod · 0.80

Tested by

no test coverage detected