MCPcopy Create free account
hub / github.com/github/gh-aw / TestComputeModelInferenceAICCopilotAlias

Function TestComputeModelInferenceAICCopilotAlias

pkg/cli/model_costs_test.go:57–63  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

55}
56
57func TestComputeModelInferenceAICCopilotAlias(t *testing.T) {
58 // provider="copilot" is another accepted alias for "github-copilot".
59 aicViaCopilot := computeModelInferenceAIC("copilot", "claude-sonnet-4.6", 1000, 200, 0, 0, 0)
60 aicViaGitHubCopilot := computeModelInferenceAIC("github-copilot", "claude-sonnet-4.6", 1000, 200, 0, 0, 0)
61 assert.Greater(t, aicViaCopilot, 0.0, "copilot provider alias should produce non-zero AIC")
62 assert.InDelta(t, aicViaGitHubCopilot, aicViaCopilot, 1e-9, "copilot and github-copilot should yield identical AIC")
63}

Callers

nothing calls this directly

Calls 1

computeModelInferenceAICFunction · 0.85

Tested by

no test coverage detected