Lines Matching refs:tc
81 for _, tc := range testCases {
85 // Write an image with bounds 2x1 but tc.nPix pixels. If tc.nPix != 2
90 if tc.nPix > 0 {
91 enc := lzwEncode(make([]byte, tc.nPix))
92 if len(enc)+tc.extraExisting > 0xff {
94 tc.nPix, tc.extraExisting, tc.extraSeparate, len(enc))
99 b.WriteByte(byte(len(enc) + tc.extraExisting))
106 b.WriteString(extra[:tc.extraExisting])
109 if tc.extraSeparate > 0 {
111 b.WriteByte(byte(tc.extraSeparate))
112 b.WriteString(extra[:tc.extraSeparate])
118 if err != tc.wantErr {
120 tc.nPix, tc.extraExisting, tc.extraSeparate, err, tc.wantErr)
123 if tc.wantErr != nil {
137 tc.nPix, tc.extraExisting, tc.extraSeparate, got, want)