MCPcopy Create free account
hub / github.com/dagger/dagger / sdkSourceAt

Function sdkSourceAt

core/integration/module_test.go:8241–8247  ·  view source on GitHub ↗
(dir, sdk, contents string)

Source from the content-addressed store, hash-verified

8239}
8240
8241func sdkSourceAt(dir, sdk, contents string) dagger.WithContainerFunc {
8242 path := sdkSourceFile(sdk)
8243 if sdk == "python" && dir != "." && dir != "test" {
8244 path = strings.ReplaceAll(path, "test", dir)
8245 }
8246 return fileContents(filepath.Join(dir, path), contents)
8247}
8248
8249func sdkSourceFile(sdk string) string {
8250 if strings.HasPrefix(sdk, "github.com/vito/dang/dagger-sdk") {

Callers 3

TestLoadAnotherModuleMethod · 0.85
withModInitAtFunction · 0.85
TestIncludeExcludeMethod · 0.85

Calls 2

sdkSourceFileFunction · 0.85
fileContentsFunction · 0.85

Tested by

no test coverage detected