Initial commit of Descrybe v2 without local scratch artifacts.
Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package billing
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestParseUsageRange(t *testing.T) {
|
||||
t.Parallel()
|
||||
cases := []struct {
|
||||
in, want string
|
||||
}{
|
||||
{"", "30d"},
|
||||
{"7d", "7d"},
|
||||
{"30D", "30d"},
|
||||
{" cycle ", "cycle"},
|
||||
{"all", "all"},
|
||||
{"week", "30d"},
|
||||
{"90d", "30d"},
|
||||
}
|
||||
for _, c := range cases {
|
||||
if got := ParseUsageRange(c.in); got != c.want {
|
||||
t.Fatalf("ParseUsageRange(%q)=%q want %q", c.in, got, c.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user