(t *testing.T)
| 1050 | } |
| 1051 | |
| 1052 | func TestComputeRunMetricsDiff_RateLimitAloneNotNil(t *testing.T) { |
| 1053 | // RunMetricsDiff should be non-nil when only rate limit data is present |
| 1054 | summary1 := &RunSummary{ |
| 1055 | GitHubRateLimitUsage: &GitHubRateLimitUsage{ |
| 1056 | TotalRequestsMade: 10, |
| 1057 | }, |
| 1058 | } |
| 1059 | summary2 := &RunSummary{ |
| 1060 | GitHubRateLimitUsage: &GitHubRateLimitUsage{ |
| 1061 | TotalRequestsMade: 15, |
| 1062 | }, |
| 1063 | } |
| 1064 | |
| 1065 | diff := computeRunMetricsDiff(summary1, summary2) |
| 1066 | require.NotNil(t, diff, "diff should not be nil when rate limit data is present") |
| 1067 | require.NotNil(t, diff.GitHubRateLimitDetails, "GitHubRateLimitDetails should be populated") |
| 1068 | } |
| 1069 | |
| 1070 | // --- Tool calls diff tests --- |
| 1071 |
nothing calls this directly
no test coverage detected