github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/asm/arm64/consts_test.go (about)

     1  package arm64
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/wasilibs/wazerox/internal/asm"
     7  	"github.com/wasilibs/wazerox/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  }