wa-lang.org/wazero@v1.0.2/internal/wazeroir/operations_test.go (about)

     1  package wazeroir
     2  
     3  import (
     4  	"testing"
     5  
     6  	"wa-lang.org/wazero/internal/testing/require"
     7  )
     8  
     9  // TestInstructionName ensures that all the operation kind's stringer is well-defined.
    10  func TestOperationKind_String(t *testing.T) {
    11  	for k := OperationKind(0); k < operationKindEnd; k++ {
    12  		require.NotEqual(t, "", k.String())
    13  	}
    14  }