processor/cocomo_test.go GO 38 lines View on github.com → Search inside
1// SPDX-License-Identifier: MIT23package processor45import (6	"testing"7)89func TestEstimateCost(t *testing.T) {10	eff := EstimateEffort(26, 1)11	got := EstimateCost(eff, 56000, 2.4)1213	// Should be around 58214	if got < 580 || got > 585 {15		t.Errorf("Got %f", got)16	}17}1819func TestEstimateCostManyLines(t *testing.T) {20	eff := EstimateEffort(77873, 1)21	got := EstimateCost(eff, 56000, 2.4)2223	// Should be around 260209624	if got < 2602000 || got > 2602100 {25		t.Errorf("Got %f", got)26	}27}2829func TestEstimateScheduleMonths(t *testing.T) {30	eff := EstimateEffort(537, 1)31	got := EstimateScheduleMonths(eff)3233	// Should be around 2.734	if got < 2.6 || got > 2.8 {35		t.Errorf("Got %f", got)36	}37}

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.