(t *testing.T, ctx context.Context, zoneId string, name string, data string)
| 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) |
| 282 | if err != nil { |
| 283 | t.Errorf("error reading data for file %q: %v", name, err) |
| 284 | return |
| 285 | } |
| 286 | if string(rdata) != data { |
| 287 | t.Errorf("data mismatch for file %q: expected %q, got %q", name, data, string(rdata)) |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | func checkFileByteCount(t *testing.T, ctx context.Context, zoneId string, name string, val byte, expected int) { |
| 292 | _, rdata, err := WFS.ReadFile(ctx, zoneId, name) |
no test coverage detected