Lines Matching refs:tt
121 for i, tt := range tests {
122 inCopy := make([]IPAddr, len(tt.in))
123 copy(inCopy, tt.in)
124 srcCopy := make([]IP, len(tt.in))
125 copy(srcCopy, tt.srcs)
127 if !reflect.DeepEqual(inCopy, tt.want) {
128 t.Errorf("test %d:\nin = %s\ngot: %s\nwant: %s\n", i, tt.in, inCopy, tt.want)
130 if tt.reverse {
131 copy(inCopy, tt.in)
132 copy(srcCopy, tt.srcs)
139 if !reflect.DeepEqual(inCopy, tt.want) {
140 t.Errorf("test %d, starting backwards:\nin = %s\ngot: %s\nwant: %s\n", i, tt.in, inCopy, tt.want)
186 for i, tt := range tests {
187 got := rfc6724policyTable.Classify(tt.ip)
188 if !reflect.DeepEqual(got, tt.want) {
189 t.Errorf("%d. Classify(%s) = %v; want %v", i, tt.ip, got, tt.want)
215 for i, tt := range tests {
216 got := classifyScope(tt.ip)
217 if got != tt.want {
218 t.Errorf("%d. classifyScope(%s) = %x; want %x", i, tt.ip, got, tt.want)
242 for i, tt := range tests {
243 got := commonPrefixLen(tt.a, tt.b)
244 if got != tt.want {
245 t.Errorf("%d. commonPrefixLen(%s, %s) = %d; want %d", i, tt.a, tt.b, got, tt.want)