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

Function TestServiceCompiledIs

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

Source from the content-addressed store, hash-verified

5)
6
7func TestServiceCompiledIs(t *testing.T) {
8 if compiled, err := compile(&testOracle); err != nil {
9 t.Fatal(err)
10 } else if !compiled.Is(testOracle) {
11 t.Fatal("compiled object does not match source oracle")
12 }
13}
14
15func TestServiceCompiledIsNot(t *testing.T) {
16 if compiled, err := compile(&testOracle); err != nil {

Callers

nothing calls this directly

Calls 2

compileFunction · 0.85
IsMethod · 0.45

Tested by

no test coverage detected