MCPcopy Index your code
hub / github.com/google/go-github / TestSecurityAndAnalysis_String

Function TestSecurityAndAnalysis_String

github/github-stringify_test.go:2211–2225  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2209}
2210
2211func TestSecurityAndAnalysis_String(t *testing.T) {
2212 t.Parallel()
2213 v := SecurityAndAnalysis{
2214 AdvancedSecurity: &AdvancedSecurity{},
2215 SecretScanning: &SecretScanning{},
2216 SecretScanningPushProtection: &SecretScanningPushProtection{},
2217 DependabotSecurityUpdates: &DependabotSecurityUpdates{},
2218 SecretScanningValidityChecks: &SecretScanningValidityChecks{},
2219 CodeSecurity: &CodeSecurity{},
2220 }
2221 want := `github.SecurityAndAnalysis{AdvancedSecurity:github.AdvancedSecurity{}, SecretScanning:github.SecretScanning{}, SecretScanningPushProtection:github.SecretScanningPushProtection{}, DependabotSecurityUpdates:github.DependabotSecurityUpdates{}, SecretScanningValidityChecks:github.SecretScanningValidityChecks{}, CodeSecurity:github.CodeSecurity{}}`
2222 if got := v.String(); got != want {
2223 t.Errorf("SecurityAndAnalysis.String = %v, want %v", got, want)
2224 }
2225}
2226
2227func TestSelfHostRunnerPermissionsEnterprise_String(t *testing.T) {
2228 t.Parallel()

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…