@@ -411,7 +411,7 @@ func TestRepositoriesService_Get(t *testing.T) {
411411 mux .HandleFunc ("/repos/o/r" , func (w http.ResponseWriter , r * http.Request ) {
412412 testMethod (t , r , "GET" )
413413 testHeader (t , r , "Accept" , strings .Join (wantAcceptHeaders , ", " ))
414- fmt .Fprint (w , `{"id":1,"name":"n","description":"d","owner":{"login":"l"},"license":{"key":"mit"},"security_and_analysis":{"advanced_security":{"status":"enabled"},"secret_scanning":{"status":"enabled"},"secret_scanning_push_protection":{"status":"enabled"},"dependabot_security_updates":{"status": "enabled"}, "secret_scanning_validity_checks":{"status":"enabled"}}}` )
414+ fmt .Fprint (w , `{"id":1,"name":"n","description":"d","owner":{"login":"l"},"license":{"key":"mit"},"security_and_analysis":{"advanced_security":{"status":"enabled"},"secret_scanning":{"status":"enabled"},"secret_scanning_push_protection":{"status":"enabled"},"dependabot_security_updates":{"status": "enabled"}, "secret_scanning_validity_checks":{"status":"enabled"}, "code_security":{"status":"enabled"} }}` )
415415 })
416416
417417 ctx := t .Context ()
@@ -420,7 +420,7 @@ func TestRepositoriesService_Get(t *testing.T) {
420420 t .Errorf ("Repositories.Get returned error: %v" , err )
421421 }
422422
423- want := & Repository {ID : Ptr (int64 (1 )), Name : Ptr ("n" ), Description : Ptr ("d" ), Owner : & User {Login : Ptr ("l" )}, License : & License {Key : Ptr ("mit" )}, SecurityAndAnalysis : & SecurityAndAnalysis {AdvancedSecurity : & AdvancedSecurity {Status : Ptr ("enabled" )}, SecretScanning : & SecretScanning {Ptr ("enabled" )}, SecretScanningPushProtection : & SecretScanningPushProtection {Ptr ("enabled" )}, DependabotSecurityUpdates : & DependabotSecurityUpdates {Ptr ("enabled" )}, SecretScanningValidityChecks : & SecretScanningValidityChecks {Ptr ("enabled" )}}}
423+ want := & Repository {ID : Ptr (int64 (1 )), Name : Ptr ("n" ), Description : Ptr ("d" ), Owner : & User {Login : Ptr ("l" )}, License : & License {Key : Ptr ("mit" )}, SecurityAndAnalysis : & SecurityAndAnalysis {AdvancedSecurity : & AdvancedSecurity {Status : Ptr ("enabled" )}, SecretScanning : & SecretScanning {Ptr ("enabled" )}, SecretScanningPushProtection : & SecretScanningPushProtection {Ptr ("enabled" )}, DependabotSecurityUpdates : & DependabotSecurityUpdates {Ptr ("enabled" )}, SecretScanningValidityChecks : & SecretScanningValidityChecks {Ptr ("enabled" )}, CodeSecurity : & CodeSecurity { Ptr ( "enabled" )} }}
424424 if ! cmp .Equal (got , want ) {
425425 t .Errorf ("Repositories.Get returned %+v, want %+v" , got , want )
426426 }
0 commit comments