MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / scriptPath

Function scriptPath

internal/buildtools/install_refresh_test.go:209–219  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

207}
208
209func scriptPath(t *testing.T) string {
210 t.Helper()
211 p, err := filepath.Abs(filepath.Join("..", "..", "scripts", "install-refresh.sh"))
212 if err != nil {
213 t.Fatalf("abs: %v", err)
214 }
215 if _, err := os.Stat(p); err != nil {
216 t.Fatalf("script not found at %s: %v", p, err)
217 }
218 return p
219}
220
221type stubEnv struct {
222 version string

Calls 4

HelperMethod · 0.80
JoinMethod · 0.80
FatalfMethod · 0.80
StatMethod · 0.65

Tested by

no test coverage detected