github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/asm/amd64/consts_test.go (about)

     1  package amd64
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/bananabytelabs/wazero/internal/asm"
     7  	"github.com/bananabytelabs/wazero/internal/testing/require"
     8  )
     9  
    10  // TestInstructionName ensures that all the instruction's name is defined.
    11  func TestInstructionName(t *testing.T) {
    12  	for inst := asm.Instruction(0); inst < instructionEnd; inst++ {
    13  		require.NotEqual(t, "", InstructionName(inst))
    14  	}
    15  }