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

Method Is

service/compiled.go:25–27  ·  view source on GitHub ↗
(o pb.Oracle)

Source from the content-addressed store, hash-verified

23}
24
25func (c *compiled) Is(o pb.Oracle) bool {
26 return c.oracle.Id == o.Id
27}
28
29func (c *compiled) Run(records *storage.Records, args []string) (ctx *wrapper.Context, raw []byte, err error) {
30 ret, err := func() (otto.Value, error) {

Callers 4

TestServiceCompiledIsFunction · 0.45
TestServiceCompiledIsNotFunction · 0.45
TestServiceCompilerFunction · 0.45
BenchmarkCompiledIsFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestServiceCompiledIsFunction · 0.36
TestServiceCompiledIsNotFunction · 0.36
TestServiceCompilerFunction · 0.36
BenchmarkCompiledIsFunction · 0.36