lolly/internal/middleware/limitrate/limitrate_test.go
xfy 2734b04d8f refactor: remove 16.8k lines of dead code across all internal packages
- Delete unused files: tempfile subsystem, matcher variants, server/internal
- Remove 200+ unused functions across proxy, ssl, lua, http2/3, stream, variable
- Fix proxy test type errors (backgroundRefresh ctx→Request)
- Move bench/tools mock backend into internal/testutil
- Remove corresponding test functions for all deleted code
2026-06-03 16:15:43 +08:00

20 lines
534 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package limitrate 提供响应速率限制中间件的测试。
//
// 该文件测试速率限制模块的各项功能,包括:
// - 常量值
//
// 作者xfy
package limitrate
import "testing"
// TestConstants 测试常量值。
func TestConstants(t *testing.T) {
if LargeFileStrategySkip != "skip" {
t.Errorf("LargeFileStrategySkip = %q, want %q", LargeFileStrategySkip, "skip")
}
if LargeFileStrategyCoarse != "coarse" {
t.Errorf("LargeFileStrategyCoarse = %q, want %q", LargeFileStrategyCoarse, "coarse")
}
}