MCPcopy Index your code
hub / github.com/commitdev/zero / TestIsLocal

Function TestIsLocal

internal/module/module_internal_test.go:7–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5)
6
7func TestIsLocal(t *testing.T) {
8 source := "./tests/test_data/modules"
9 res := IsLocal(source)
10 if !res {
11 t.Errorf("Error, source %s SHOULD BE determined as local", source)
12 }
13
14 source = "https://github.com/commitdev/my-repo"
15 res = IsLocal(source)
16 if res {
17 t.Errorf("Error, source %s SHOULD NOT BE determined as local", source)
18 }
19}

Callers

nothing calls this directly

Calls 1

IsLocalFunction · 0.85

Tested by

no test coverage detected