(t *testing.T, ctx context.Context, zoneId string, name string, size int64)
| 263 | } |
| 264 | |
| 265 | func checkFileSize(t *testing.T, ctx context.Context, zoneId string, name string, size int64) { |
| 266 | file, err := WFS.Stat(ctx, zoneId, name) |
| 267 | if err != nil { |
| 268 | t.Errorf("error stating file %q: %v", name, err) |
| 269 | return |
| 270 | } |
| 271 | if file == nil { |
| 272 | t.Errorf("file %q not found", name) |
| 273 | return |
| 274 | } |
| 275 | if file.Size != size { |
| 276 | t.Errorf("size mismatch for file %q: expected %d, got %d", name, size, file.Size) |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | func checkFileData(t *testing.T, ctx context.Context, zoneId string, name string, data string) { |
| 281 | _, rdata, err := WFS.ReadFile(ctx, zoneId, name) |
no test coverage detected