diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-23 04:32:32 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-23 04:32:32 +0900 |
| commit | 1685a4d000a6ddb7b3512790ee52ec51ac3f4e39 (patch) | |
| tree | c9abbb3b188786061704c9c05f3779c4ccfe1af2 /cmd | |
| parent | 6c338b433a3f1fba6d1c46728ac62048842d8582 (diff) | |
cmd/hsu: reduce excessive test range
This is quite a simple piece of code, this many test cases is excessive and wastes time in the integration vm.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/hsu/parse_test.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cmd/hsu/parse_test.go b/cmd/hsu/parse_test.go index 0fbf8a15..7b5ec09f 100644 --- a/cmd/hsu/parse_test.go +++ b/cmd/hsu/parse_test.go @@ -36,7 +36,7 @@ func TestParseUint32Fast(t *testing.T) { } }) - t.Run("full range", func(t *testing.T) { + t.Run("range", func(t *testing.T) { t.Parallel() testRange := func(i, end int) { @@ -61,11 +61,9 @@ func TestParseUint32Fast(t *testing.T) { } } - testRange(0, 5000) - testRange(105000, 110000) - testRange(23005000, 23010000) - testRange(456005000, 456010000) - testRange(7890005000, 7890010000) + testRange(0, 2500) + testRange(23002500, 23005000) + testRange(7890002500, 7890005000) }) } |
