MCPcopy Index your code
hub / github.com/expr-lang/expr / TestRun_OpInvalid

Function TestRun_OpInvalid

vm/vm_test.go:295–303  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

293}
294
295func TestRun_OpInvalid(t *testing.T) {
296 program := &vm.Program{
297 Bytecode: []vm.Opcode{vm.OpInvalid},
298 Arguments: []int{0},
299 }
300
301 _, err := vm.Run(program, nil)
302 require.EqualError(t, err, "invalid opcode")
303}
304
305func TestVM_OpcodeOperations(t *testing.T) {
306 tests := []struct {

Callers

nothing calls this directly

Calls 2

RunFunction · 0.92
EqualErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…