/external/boringssl/src/crypto/asn1/ |
tasn_new.c | 72 static void asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt); 93 const ASN1_TEMPLATE *tt = NULL; local 188 for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) { 189 pseqval = asn1_get_field_ptr(pval, tt); 190 if (!ASN1_template_new(pseqval, tt)) 259 int ASN1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) 261 const ASN1_ITEM *it = ASN1_ITEM_ptr(tt->item); 263 if (tt->flags & ASN1_TFLG_OPTIONAL) { 264 asn1_template_clear(pval, tt); [all...] |
/prebuilts/go/darwin-x86/src/net/ |
fd_posix_test.go | 51 for _, tt := range eofErrorTests { 52 actual := tt.fd.eofError(tt.n, tt.err) 53 if actual != tt.expected { 54 t.Errorf("eofError(%v, %v, %v): expected %v, actual %v", tt.n, tt.err, tt.fd.sotype, tt.expected, actual)
|
server_test.go | 56 for i, tt := range tcpServerTests { 57 if !testableListenArgs(tt.snet, tt.saddr, tt.taddr) { 58 t.Logf("skipping %s test", tt.snet+" "+tt.saddr+"<-"+tt.taddr) 62 ln, err := Listen(tt.snet, tt.saddr) 100 c, err := d.Dial(tt.tnet, JoinHostPort(tt.taddr, port) [all...] |
error_posix_test.go | 16 for _, tt := range []struct { 30 if ok := spuriousENOTAVAIL(tt.error); ok != tt.ok { 31 t.Errorf("spuriousENOTAVAIL(%v) = %v; want %v", tt.error, ok, tt.ok)
|
/prebuilts/go/linux-x86/src/net/ |
fd_posix_test.go | 51 for _, tt := range eofErrorTests { 52 actual := tt.fd.eofError(tt.n, tt.err) 53 if actual != tt.expected { 54 t.Errorf("eofError(%v, %v, %v): expected %v, actual %v", tt.n, tt.err, tt.fd.sotype, tt.expected, actual)
|
server_test.go | 56 for i, tt := range tcpServerTests { 57 if !testableListenArgs(tt.snet, tt.saddr, tt.taddr) { 58 t.Logf("skipping %s test", tt.snet+" "+tt.saddr+"<-"+tt.taddr) 62 ln, err := Listen(tt.snet, tt.saddr) 100 c, err := d.Dial(tt.tnet, JoinHostPort(tt.taddr, port) [all...] |
/prebuilts/go/darwin-x86/src/go/doc/ |
comment_test.go | 37 for _, tt := range headingTests { 38 if h := heading(tt.line); (len(h) > 0) != tt.ok { 39 t.Errorf("isHeading(%q) = %v, want %v", tt.line, h, tt.ok) 131 for i, tt := range blocksTests { 132 b := blocks(tt.in) 133 if !reflect.DeepEqual(b, tt.out) { 134 t.Errorf("#%d: mismatch\nhave: %v\nwant: %v", i, b, tt.out) 141 for i, tt := range blocksTests [all...] |
/prebuilts/go/linux-x86/src/go/doc/ |
comment_test.go | 37 for _, tt := range headingTests { 38 if h := heading(tt.line); (len(h) > 0) != tt.ok { 39 t.Errorf("isHeading(%q) = %v, want %v", tt.line, h, tt.ok) 131 for i, tt := range blocksTests { 132 b := blocks(tt.in) 133 if !reflect.DeepEqual(b, tt.out) { 134 t.Errorf("#%d: mismatch\nhave: %v\nwant: %v", i, b, tt.out) 141 for i, tt := range blocksTests [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/ |
SecP521R1Field.java | 56 int[] tt = Nat.create(33); local 57 implMultiply(x, y, tt); 58 reduce(tt, z); 103 int[] tt = Nat.create(33); local 104 implSquare(x, tt); 105 reduce(tt, z); 112 int[] tt = Nat.create(33); local 113 implSquare(x, tt); 114 reduce(tt, z); 118 implSquare(z, tt); [all...] |
/prebuilts/go/darwin-x86/src/strings/ |
reader_test.go | 39 for i, tt := range tests { 40 pos, err := r.Seek(tt.off, tt.seek) 41 if err == nil && tt.seekerr != "" { 42 t.Errorf("%d. want seek error %q", i, tt.seekerr) 45 if err != nil && err.Error() != tt.seekerr { 46 t.Errorf("%d. seek error = %q; want %q", i, err.Error(), tt.seekerr) 49 if tt.wantpos != 0 && tt.wantpos != pos { 50 t.Errorf("%d. pos = %d, want %d", i, pos, tt.wantpos [all...] |
/prebuilts/go/linux-x86/src/strings/ |
reader_test.go | 39 for i, tt := range tests { 40 pos, err := r.Seek(tt.off, tt.seek) 41 if err == nil && tt.seekerr != "" { 42 t.Errorf("%d. want seek error %q", i, tt.seekerr) 45 if err != nil && err.Error() != tt.seekerr { 46 t.Errorf("%d. seek error = %q; want %q", i, err.Error(), tt.seekerr) 49 if tt.wantpos != 0 && tt.wantpos != pos { 50 t.Errorf("%d. pos = %d, want %d", i, pos, tt.wantpos [all...] |
/prebuilts/go/darwin-x86/src/go/build/ |
read_test.go | 98 for i, tt := range tests { 100 j := strings.Index(tt.in, "?") 102 in = tt.in 103 testOut = tt.in 105 in = tt.in[:j] + tt.in[j+len("?"):] 106 testOut = tt.in[:j] 111 if tt.err == "" { 115 if !strings.Contains(err.Error(), tt.err) { 116 t.Errorf("#%d: err=%q, expected %q", i, err, tt.err [all...] |
/prebuilts/go/linux-x86/src/go/build/ |
read_test.go | 98 for i, tt := range tests { 100 j := strings.Index(tt.in, "?") 102 in = tt.in 103 testOut = tt.in 105 in = tt.in[:j] + tt.in[j+len("?"):] 106 testOut = tt.in[:j] 111 if tt.err == "" { 115 if !strings.Contains(err.Error(), tt.err) { 116 t.Errorf("#%d: err=%q, expected %q", i, err, tt.err [all...] |
/prebuilts/go/darwin-x86/src/encoding/json/ |
fold_test.go | 43 for i, tt := range foldTests { 44 if got := tt.fn([]byte(tt.s), []byte(tt.t)); got != tt.want { 45 t.Errorf("%d. %q, %q = %v; want %v", i, tt.s, tt.t, got, tt.want) 47 truth := strings.EqualFold(tt.s, tt.t [all...] |
/prebuilts/go/linux-x86/src/encoding/json/ |
fold_test.go | 43 for i, tt := range foldTests { 44 if got := tt.fn([]byte(tt.s), []byte(tt.t)); got != tt.want { 45 t.Errorf("%d. %q, %q = %v; want %v", i, tt.s, tt.t, got, tt.want) 47 truth := strings.EqualFold(tt.s, tt.t [all...] |
/external/skia/src/sfnt/ |
SkOTTable_maxp.h | 28 struct TT : SkOTTableMaximumProfile_TT { } tt; member in union:SkOTTableMaximumProfile::Version
|
/prebuilts/go/darwin-x86/src/path/ |
match_test.go | 73 for _, tt := range matchTests { 74 ok, err := Match(tt.pattern, tt.s) 75 if ok != tt.match || err != tt.err { 76 t.Errorf("Match(%#q, %#q) = %v, %v want %v, nil", tt.pattern, tt.s, ok, err, tt.match)
|
/prebuilts/go/linux-x86/src/path/ |
match_test.go | 73 for _, tt := range matchTests { 74 ok, err := Match(tt.pattern, tt.s) 75 if ok != tt.match || err != tt.err { 76 t.Errorf("Match(%#q, %#q) = %v, %v want %v, nil", tt.pattern, tt.s, ok, err, tt.match)
|
/prebuilts/go/darwin-x86/src/compress/zlib/ |
reader_test.go | 146 for _, tt := range zlibTests { 147 in := bytes.NewReader(tt.compressed) 148 zr, err := NewReaderDict(in, tt.dict) 150 if err != tt.err { 151 t.Errorf("%s: NewReader: %s", tt.desc, err) 161 if err != tt.err { 162 t.Errorf("%s: io.Copy: %v want %v", tt.desc, err, tt.err) 167 if s != tt.raw { 168 t.Errorf("%s: got %d-byte %q want %d-byte %q", tt.desc, n, s, len(tt.raw), tt.raw [all...] |
/prebuilts/go/darwin-x86/src/crypto/cipher/ |
ofb_test.go | 69 for _, tt := range ofbTests { 70 test := tt.name 72 c, err := aes.NewCipher(tt.key) 74 t.Errorf("%s: NewCipher(%d bytes) = %s", test, len(tt.key), err) 79 plaintext := tt.in[0 : len(tt.in)-j] 80 ofb := cipher.NewOFB(c, tt.iv) 83 if !bytes.Equal(ciphertext, tt.out[:len(plaintext)]) { 84 t.Errorf("%s/%d: encrypting\ninput % x\nhave % x\nwant % x", test, len(plaintext), plaintext, ciphertext, tt.out) 89 ciphertext := tt.out[0 : len(tt.in)-j [all...] |
/prebuilts/go/darwin-x86/src/net/http/httptest/ |
httptest_test.go | 154 for i, tt := range tests { 155 got := NewRequest(tt.method, tt.uri, tt.body) 160 if string(slurp) != tt.wantBody { 161 t.Errorf("%d. Body = %q; want %q", i, slurp, tt.wantBody) 164 if !reflect.DeepEqual(got.URL, tt.want.URL) { 165 t.Errorf("%d. Request.URL mismatch:\n got: %#v\nwant: %#v", i, got.URL, tt.want.URL) 167 if !reflect.DeepEqual(got.Header, tt.want.Header) { 168 t.Errorf("%d. Request.Header mismatch:\n got: %#v\nwant: %#v", i, got.Header, tt.want.Header [all...] |
/prebuilts/go/linux-x86/src/compress/zlib/ |
reader_test.go | 146 for _, tt := range zlibTests { 147 in := bytes.NewReader(tt.compressed) 148 zr, err := NewReaderDict(in, tt.dict) 150 if err != tt.err { 151 t.Errorf("%s: NewReader: %s", tt.desc, err) 161 if err != tt.err { 162 t.Errorf("%s: io.Copy: %v want %v", tt.desc, err, tt.err) 167 if s != tt.raw { 168 t.Errorf("%s: got %d-byte %q want %d-byte %q", tt.desc, n, s, len(tt.raw), tt.raw [all...] |
/prebuilts/go/linux-x86/src/crypto/cipher/ |
ofb_test.go | 69 for _, tt := range ofbTests { 70 test := tt.name 72 c, err := aes.NewCipher(tt.key) 74 t.Errorf("%s: NewCipher(%d bytes) = %s", test, len(tt.key), err) 79 plaintext := tt.in[0 : len(tt.in)-j] 80 ofb := cipher.NewOFB(c, tt.iv) 83 if !bytes.Equal(ciphertext, tt.out[:len(plaintext)]) { 84 t.Errorf("%s/%d: encrypting\ninput % x\nhave % x\nwant % x", test, len(plaintext), plaintext, ciphertext, tt.out) 89 ciphertext := tt.out[0 : len(tt.in)-j [all...] |
/prebuilts/go/linux-x86/src/net/http/httptest/ |
httptest_test.go | 154 for i, tt := range tests { 155 got := NewRequest(tt.method, tt.uri, tt.body) 160 if string(slurp) != tt.wantBody { 161 t.Errorf("%d. Body = %q; want %q", i, slurp, tt.wantBody) 164 if !reflect.DeepEqual(got.URL, tt.want.URL) { 165 t.Errorf("%d. Request.URL mismatch:\n got: %#v\nwant: %#v", i, got.URL, tt.want.URL) 167 if !reflect.DeepEqual(got.Header, tt.want.Header) { 168 t.Errorf("%d. Request.Header mismatch:\n got: %#v\nwant: %#v", i, got.Header, tt.want.Header [all...] |
/prebuilts/go/darwin-x86/src/cmd/compile/internal/gc/ |
sizeof_test.go | 46 for _, tt := range tests { 47 want := tt._32bit 49 want = tt._64bit 51 got := reflect.TypeOf(tt.val).Size() 53 t.Errorf("unsafe.Sizeof(%T) = %d, want %d", tt.val, got, want)
|