MCPcopy Create free account
hub / github.com/cronitorio/cronitor-cli / TestdataDir

Function TestdataDir

internal/testutil/mock_api.go:140–143  ·  view source on GitHub ↗

TestdataDir returns the path to the testdata directory at the project root.

()

Source from the content-addressed store, hash-verified

138
139// TestdataDir returns the path to the testdata directory at the project root.
140func TestdataDir() string {
141 _, filename, _, _ := runtime.Caller(0)
142 return filepath.Join(filepath.Dir(filename), "..", "..", "testdata")
143}
144
145// LoadFixture reads a JSON fixture file from testdata/.
146func LoadFixture(name string) string {

Callers 1

LoadFixtureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected