(t *testing.T)
| 247 | } |
| 248 | |
| 249 | func TestIsEntryHTTPS(t *testing.T) { |
| 250 | assert.True(t, isEntryHTTPS(AuditLogEntry{Method: "CONNECT"}), "CONNECT should be HTTPS") |
| 251 | assert.True(t, isEntryHTTPS(AuditLogEntry{Method: "connect"}), "connect (lowercase) should be HTTPS") |
| 252 | assert.False(t, isEntryHTTPS(AuditLogEntry{Method: "GET"}), "GET should not be HTTPS") |
| 253 | assert.False(t, isEntryHTTPS(AuditLogEntry{Method: ""}), "Empty method should not be HTTPS") |
| 254 | } |
| 255 | |
| 256 | func TestIsEntryAllowed(t *testing.T) { |
| 257 | tests := []struct { |
nothing calls this directly
no test coverage detected