(t *testing.T)
| 46 | } |
| 47 | |
| 48 | func TestComputeModelInferenceAICGitHubModels(t *testing.T) { |
| 49 | // provider="github_models" is written by the AWF proxy for Copilot engine runs; |
| 50 | // it must normalize to "github-copilot" so pricing is found and AIC is non-zero. |
| 51 | aicViaGitHubModels := computeModelInferenceAIC("github_models", "claude-sonnet-4.6", 1000, 200, 0, 0, 0) |
| 52 | aicViaGitHubCopilot := computeModelInferenceAIC("github-copilot", "claude-sonnet-4.6", 1000, 200, 0, 0, 0) |
| 53 | assert.Greater(t, aicViaGitHubModels, 0.0, "github_models provider should produce non-zero AIC") |
| 54 | assert.InDelta(t, aicViaGitHubCopilot, aicViaGitHubModels, 1e-9, "github_models and github-copilot should yield identical AIC") |
| 55 | } |
| 56 | |
| 57 | func TestComputeModelInferenceAICCopilotAlias(t *testing.T) { |
| 58 | // provider="copilot" is another accepted alias for "github-copilot". |
nothing calls this directly
no test coverage detected