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

Function testModuleURL

module_test.go:33–45  ·  view source on GitHub ↗
(n string)

Source from the content-addressed store, hash-verified

31}
32
33func testModuleURL(n string) *url.URL {
34 n, subDir := SourceDirSubdir(n)
35 u, err := urlhelper.Parse(testModule(n))
36 if err != nil {
37 panic(err)
38 }
39 if subDir != "" {
40 u.Path += "//" + subDir
41 u.RawPath = u.Path
42 }
43
44 return u
45}

Callers 15

TestHgGetterFunction · 0.85
TestHgGetter_branchFunction · 0.85
TestHgGetter_GetFileFunction · 0.85
testHttpHandlerHeaderFunction · 0.85
testHttpHandlerMetaFunction · 0.85
testHttpHandlerMetaAuthFunction · 0.85
TestFileGetterFunction · 0.85

Calls 2

SourceDirSubdirFunction · 0.85
testModuleFunction · 0.85

Tested by

no test coverage detected