Debian Codegraph @

internal/api/types_test.go

raw symbols SCIP
1 package api
2
3 import (
4 "go/token"
5 "testing"
6
7 "github.com/mmcloughlin/avo/internal/inst"
8 )
9
10 func TestISAsIdentifier(t *testing.T) {
11 for _, isas := range inst.ISACombinations(inst.Instructions) {
12 ident := ISAsIdentifier(isas)
13 if !token.IsIdentifier(ident) {
14 t.Errorf("expected %q to be an identifier", ident)
15 }
16 }
17 }
18
19 func TestSuffixesClassIdentifier(t *testing.T) {
20 for key := range inst.SuffixesClasses(inst.Instructions) {
21 ident := SuffixesClassIdentifier(key)
22 if !token.IsIdentifier(ident) {
23 t.Errorf("expected %q to be an identifier", ident)
24 }
25 }
26 }