(t *testing.T, buf *bytes.Buffer)
| 1433 | } |
| 1434 | |
| 1435 | func actualLogSpan(t *testing.T, buf *bytes.Buffer) []testLogSpan { |
| 1436 | bufJSON := "[" + strings.TrimRight(strings.ReplaceAll(buf.String(), "\n", ","), ",") + "]" |
| 1437 | var actualLogsSpan []testLogSpan |
| 1438 | err := json.Unmarshal([]byte(bufJSON), &actualLogsSpan) |
| 1439 | if err != nil { |
| 1440 | t.Fatal(err) |
| 1441 | } |
| 1442 | return actualLogsSpan |
| 1443 | } |
| 1444 | |
| 1445 | func TestRateLimitRespected(t *testing.T) { |
| 1446 | // prepare test data |
no test coverage detected