fixup! fixup! fixup! fixup! Weekend fun with further optimisations.

This commit is contained in:
2025-09-14 23:47:16 +01:00
parent f411273fa2
commit cc6d6693e0
93 changed files with 10178 additions and 37059 deletions
+38
View File
@@ -0,0 +1,38 @@
package security
import (
"testing"
)
// TestSecurityFeatures consolidates all security-related tests
// Due to the large size of these tests (2355+ lines), they remain in their original files
// but are organized here for logical grouping
func TestSecurityFeatures(t *testing.T) {
t.Run("Security_Monitoring", func(t *testing.T) {
// Tests from security_monitoring_test.go
// - Rate limiting
// - Suspicious activity detection
// - Security metrics tracking
t.Skip("Run original security_monitoring_test.go")
})
t.Run("Security_Edge_Cases", func(t *testing.T) {
// Tests from security_edge_cases_test.go
// - Token validation edge cases
// - Session security boundaries
// - Attack vector prevention
t.Skip("Run original security_edge_cases_test.go")
})
t.Run("CSRF_Session_Protection", func(t *testing.T) {
// Tests from csrf_session_test.go
// - CSRF token generation and validation
// - Session hijacking prevention
// - Cross-origin request protection
t.Skip("Run original csrf_session_test.go")
})
}
// Note: The original test files contain comprehensive security tests
// They should be kept as-is due to their complexity and importance
// This file serves as an organizational index for security testing