MCPcopy
hub / github.com/hashicorp/go-getter / testModule

Function testModule

module_test.go:14–21  ·  view source on GitHub ↗
(n string)

Source from the content-addressed store, hash-verified

12const fixtureDir = "./testdata"
13
14func testModule(n string) string {
15 p := filepath.Join(fixtureDir, n)
16 p, err := filepath.Abs(p)
17 if err != nil {
18 panic(err)
19 }
20 return fmtFileURL(p)
21}
22
23func httpTestModule(n string) *httptest.Server {
24 p := filepath.Join(fixtureDir, n)

Callers 15

TestGet_badSchemaFunction · 0.85
TestGet_fileFunction · 0.85
TestGet_filePercent2FFunction · 0.85
TestGet_fileForcedFunction · 0.85
TestGet_fileSubdirFunction · 0.85
TestGet_archiveRootedFunction · 0.85
TestGetAny_fileFunction · 0.85
TestGetFileFunction · 0.85
TestGetFile_archiveFunction · 0.85

Calls 1

fmtFileURLFunction · 0.85

Tested by

no test coverage detected