(t *testing.T)
| 16 | ) |
| 17 | |
| 18 | func TestZipLogFetcher(t *testing.T) { |
| 19 | zr := createZipReader(t, map[string]string{ |
| 20 | "foo.txt": "blah blah", |
| 21 | }) |
| 22 | |
| 23 | fetcher := &zipLogFetcher{ |
| 24 | File: zr.File[0], |
| 25 | } |
| 26 | |
| 27 | rc, err := fetcher.GetLog() |
| 28 | assert.NoError(t, err) |
| 29 | |
| 30 | defer rc.Close() |
| 31 | |
| 32 | content, err := io.ReadAll(rc) |
| 33 | assert.NoError(t, err) |
| 34 | assert.Equal(t, "blah blah", string(content)) |
| 35 | } |
| 36 | |
| 37 | func TestApiLogFetcher(t *testing.T) { |
| 38 | tests := []struct { |
nothing calls this directly
no test coverage detected