summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-23 22:18:00 +0300
committerPaul Buetow <paul@buetow.org>2026-05-23 22:18:00 +0300
commitaa836f747d99698b174294d602be7a065c9088e2 (patch)
treebdc8f3ca82a2c73cc91db304e6d3265d1e2138cd /cmd
parenta0da020a99a9ded8c7f4f79aebb689ee300c769d (diff)
test: add negative tests for custom metrics (CustomDefine/CustomUndefine)
Add custom_metric_test.go with 12 tests covering: - Define with factor=0 (valid, produces 0 in base units) - Define with negative factor (valid) - Malformed input (double-space collapse causes parse error) - Define with existing metric name (error: duplicate) - Custom metric in arithmetic (+, -, *, /) - Custom metric in hyper operations ([+]) - Cross-category conversion failure (Custom -> DataRate) - Cross-category operation failure (Time + Distance) - Custom metric display in Show Each test properly cleans up defined custom metrics to avoid polluting the global MetricRegistry.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions