MCPcopy Index your code
hub / github.com/google/mtail / TestOpcodeHasString

Function TestOpcodeHasString

internal/runtime/code/opcodes_test.go:8–14  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6import "testing"
7
8func TestOpcodeHasString(t *testing.T) {
9 for o := Bad; o < lastOpcode; o++ {
10 if o.String() != opNames[o] {
11 t.Errorf("opcode string not match. Expected %s, received %s", opNames[o], o.String())
12 }
13 }
14}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected