(t *testing.T)
| 397 | } |
| 398 | |
| 399 | func TestWorkflowLogMetricsConversion(t *testing.T) { |
| 400 | // Test that our metrics are compatible with workflow.LogMetrics |
| 401 | logContent := ` |
| 402 | Task iteration 1 |
| 403 | Tool call: github |
| 404 | ERROR: Test error |
| 405 | ` |
| 406 | metrics := ParseCopilotCodingAgentLogMetrics(logContent, false) |
| 407 | |
| 408 | // Verify the returned type is workflow.LogMetrics |
| 409 | var _ = metrics |
| 410 | |
| 411 | // Verify fields are properly set |
| 412 | if metrics.Turns != 1 { |
| 413 | t.Errorf("Expected 1 turn, got %d", metrics.Turns) |
| 414 | } |
| 415 | |
| 416 | if len(metrics.ToolCalls) < 1 { |
| 417 | t.Error("Expected tool calls to be extracted") |
| 418 | } |
| 419 | } |
nothing calls this directly
no test coverage detected