- 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
20 lines
534 B
Go
20 lines
534 B
Go
// 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")
|
||
}
|
||
}
|