MCPcopy Create free account
hub / github.com/github/gh-aw / TestIsEntryHTTPS

Function TestIsEntryHTTPS

pkg/cli/firewall_policy_test.go:249–254  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

247}
248
249func 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
256func TestIsEntryAllowed(t *testing.T) {
257 tests := []struct {

Callers

nothing calls this directly

Calls 1

isEntryHTTPSFunction · 0.85

Tested by

no test coverage detected