MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestCurrentDate

Function TestCurrentDate

internal/usage/usage_test.go:161–169  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

159}
160
161func TestCurrentDate(t *testing.T) {
162 date := usage.CurrentDate()
163 if len(date) != 10 { // "2026-03-29" format
164 t.Errorf("CurrentDate() = %q, expected YYYY-MM-DD format", date)
165 }
166 if date[4] != '-' || date[7] != '-' {
167 t.Errorf("CurrentDate() = %q, missing dash separators", date)
168 }
169}

Callers

nothing calls this directly

Calls 1

CurrentDateFunction · 0.92

Tested by

no test coverage detected