Home | History | Annotate | Download | only in tar

Lines Matching refs:testWrite

58 		testWrite struct { // Write(str) == (wantCnt, wantErr)
71 testFnc interface{} // testHeader | testWrite | testReadFrom | testClose
95 testWrite{"Kilts", 5, nil},
108 testWrite{"Google.com\n", 11, nil},
121 testWrite{"", 0, nil},
182 testWrite{"hello\n", 6, nil},
203 testWrite{"Slartibartfast\n", 15, nil},
216 testWrite{"", 0, nil},
354 testWrite{strings.Repeat("0123456789", 100), 1000, nil},
366 testWrite{strings.Repeat("\x00", 1000), 1000, nil},
378 testWrite{strings.Repeat("0123456789", 100), 1000, nil},
390 testWrite{strings.Repeat("\x00", 1000), 1000, nil},
487 case testWrite:
1014 testWrite struct { // Write(str) == (wantCnt, wantErr)
1028 testFnc interface{} // testWrite | testReadFrom | testRemaining
1051 testWrite{"", 0, nil},
1052 testWrite{"a", 0, ErrWriteTooLong},
1061 testWrite{"", 0, nil},
1062 testWrite{"a", 1, nil},
1063 testWrite{"bcde", 0, ErrWriteTooLong},
1064 testWrite{"", 0, nil},
1073 testWrite{"hello", 5, nil},
1094 testWrite{"abc", 3, nil},
1103 testWrite{"\x00\x00", 2, nil},
1105 testWrite{"abc", 3, nil},
1107 testWrite{"z", 0, ErrWriteTooLong},
1114 testWrite{"ab\x00\x00\x00cde", 8, nil},
1115 testWrite{"a", 0, ErrWriteTooLong},
1121 testWrite{"ab\x00\x00\x00cdez", 8, ErrWriteTooLong},
1127 testWrite{"ab\x00", 3, nil},
1129 testWrite{"\x00\x00cde", 5, nil},
1130 testWrite{"a", 0, ErrWriteTooLong},
1136 testWrite{"ab", 2, nil},
1174 testWrite{"ab", 2, nil},
1176 testWrite{"\x00\x00\x00", 3, nil},
1178 testWrite{"cde", 2, errMissData},
1184 testWrite{"ab", 2, nil},
1186 testWrite{"\x00\x00\x00", 3, nil},
1188 testWrite{"cde", 3, errUnrefData},
1195 testWrite{"\x00\x00abc\x00\x00", 7, nil},
1208 testWrite{"abcdefg", 0, errWriteHole},
1213 testWrite{"\x00\x00abcde", 5, errWriteHole},
1218 testWrite{"\x00\x00abc\x00\x00z", 7, ErrWriteTooLong},
1224 testWrite{"\x00\x00", 2, nil},
1226 testWrite{"abc", 3, nil},
1228 testWrite{"\x00\x00", 2, nil},
1234 testWrite{"\x00\x00", 2, nil},
1235 testWrite{"abc", 2, errMissData},
1236 testWrite{"\x00\x00", 0, errMissData},
1241 testWrite{"\x00\x00", 2, nil},
1242 testWrite{"abc", 3, nil},
1243 testWrite{"\x00\x00", 2, errUnrefData},
1270 case testWrite: