MCPcopy Create free account
hub / github.com/evilsocket/sum / TestServiceCompiledIsNot

Function TestServiceCompiledIsNot

service/compiled_test.go:15–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13}
14
15func TestServiceCompiledIsNot(t *testing.T) {
16 if compiled, err := compile(&testOracle); err != nil {
17 t.Fatal(err)
18 } else if compiled.Is(brokenOracle) {
19 t.Fatal("compiled object should not match a different source oracle")
20 }
21}

Callers

nothing calls this directly

Calls 2

compileFunction · 0.85
IsMethod · 0.45

Tested by

no test coverage detected