lolly/internal/proxy/tempfile_test.go

27 lines
729 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 proxy 提供临时文件处理功能的测试。
//
// 该文件测试临时文件模块的各项功能,包括:
// - 临时文件管理器创建
// - 阈值判定逻辑
// - 临时文件写入
// - 动态检测切换
// - 超过最大大小处理
// - 清理功能
//
// 作者xfy
package proxy
// TestTempFileManager_ShouldUseTempFile 测试阈值判定
// TestTempFile_Write 测试临时文件写入
// TestTempFile_WriteTo 测试临时文件写入响应
// TestTempFile_Close 测试临时文件关闭和清理
// TestGetDefaultTempFileManager 测试默认临时文件管理器
// TestGlobalTempFileCleaner 测试全局临时文件清理器
// strContains 检查字符串是否包含子串