MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / assertProcessMetric

Function assertProcessMetric

test/benchmark_plugins_parity_test.go:194–199  ·  view source on GitHub ↗
(t *testing.T, metrics map[string]float64, name string, want float64)

Source from the content-addressed store, hash-verified

192}
193
194func assertProcessMetric(t *testing.T, metrics map[string]float64, name string, want float64) {
195 t.Helper()
196 if got := metrics[name]; got != want {
197 t.Fatalf("process metric %s=%v want %v in %#v", name, got, want, metrics)
198 }
199}
200
201func containsBenchmarkDelta(records []benchmark.MetricDelta, plugin string, metric string, delta float64) bool {
202 for _, record := range records {

Calls

no outgoing calls

Tested by

no test coverage detected