(t *testing.T, ctx context.Context, zoneId string, name string, offset int64, data string)
| 306 | } |
| 307 | |
| 308 | func checkFileDataAt(t *testing.T, ctx context.Context, zoneId string, name string, offset int64, data string) { |
| 309 | _, rdata, err := WFS.ReadAt(ctx, zoneId, name, offset, int64(len(data))) |
| 310 | if err != nil { |
| 311 | t.Errorf("error reading data for file %q: %v", name, err) |
| 312 | return |
| 313 | } |
| 314 | if string(rdata) != data { |
| 315 | t.Errorf("data mismatch for file %q: expected %q, got %q", name, data, string(rdata)) |
| 316 | } |
| 317 | } |
| 318 | |
| 319 | func TestWriteAt(t *testing.T) { |
| 320 | initDb(t) |
no test coverage detected