diff --git a/github/code-scanning.go b/github/code-scanning.go index 5aee264b5d7..89d235469b8 100644 --- a/github/code-scanning.go +++ b/github/code-scanning.go @@ -158,10 +158,10 @@ type AnalysesListOptions struct { ListOptions } -// CodeqlDatabase represents a metadata about the CodeQL database. +// CodeQLDatabase represents a metadata about the CodeQL database. // // GitHub API docs: https://docs.github.com/en/rest/code-scanning -type CodeqlDatabase struct { +type CodeQLDatabase struct { ID *int64 `json:"id,omitempty"` Name *string `json:"name,omitempty"` Language *string `json:"language,omitempty"` @@ -235,7 +235,7 @@ type SarifID struct { // You must use an access token with the security_events scope to use this endpoint. GitHub Apps must have the security_events // read permission to use this endpoint. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#list-code-scanning-alerts-for-an-organization +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-an-organization func (s *CodeScanningService) ListAlertsForOrg(ctx context.Context, org string, opts *AlertListOptions) ([]*Alert, *Response, error) { u := fmt.Sprintf("orgs/%v/code-scanning/alerts", org) u, err := addOptions(u, opts) @@ -263,7 +263,7 @@ func (s *CodeScanningService) ListAlertsForOrg(ctx context.Context, org string, // You must use an access token with the security_events scope to use this endpoint. GitHub Apps must have the security_events // read permission to use this endpoint. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#list-code-scanning-alerts-for-a-repository +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-a-repository func (s *CodeScanningService) ListAlertsForRepo(ctx context.Context, owner, repo string, opts *AlertListOptions) ([]*Alert, *Response, error) { u := fmt.Sprintf("repos/%v/%v/code-scanning/alerts", owner, repo) u, err := addOptions(u, opts) @@ -292,7 +292,7 @@ func (s *CodeScanningService) ListAlertsForRepo(ctx context.Context, owner, repo // // The security alert_id is the number at the end of the security alert's URL. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#get-a-code-scanning-alert +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#get-a-code-scanning-alert func (s *CodeScanningService) GetAlert(ctx context.Context, owner, repo string, id int64) (*Alert, *Response, error) { u := fmt.Sprintf("repos/%v/%v/code-scanning/alerts/%v", owner, repo, id) @@ -340,7 +340,7 @@ func (s *CodeScanningService) UpdateAlert(ctx context.Context, owner, repo strin // You must use an access token with the security_events scope to use this endpoint. // GitHub Apps must have the security_events read permission to use this endpoint. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#list-instances-of-a-code-scanning-alert +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#list-instances-of-a-code-scanning-alert func (s *CodeScanningService) ListAlertInstances(ctx context.Context, owner, repo string, id int64, opts *AlertInstancesListOptions) ([]*MostRecentInstance, *Response, error) { u := fmt.Sprintf("repos/%v/%v/code-scanning/alerts/%v/instances", owner, repo, id) u, err := addOptions(u, opts) @@ -368,7 +368,7 @@ func (s *CodeScanningService) ListAlertInstances(ctx context.Context, owner, rep // You must use an access token with the security_events scope to use this endpoint. GitHub Apps must have the security_events // write permission to use this endpoint. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#upload-an-analysis-as-sarif-data +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#upload-an-analysis-as-sarif-data func (s *CodeScanningService) UploadSarif(ctx context.Context, owner, repo string, sarif *SarifAnalysis) (*SarifID, *Response, error) { u := fmt.Sprintf("repos/%v/%v/code-scanning/sarifs", owner, repo) @@ -386,8 +386,8 @@ func (s *CodeScanningService) UploadSarif(ctx context.Context, owner, repo strin return sarifID, resp, nil } -// SarifUpload represents information about a SARIF upload. -type SarifUpload struct { +// SARIFUpload represents information about a SARIF upload. +type SARIFUpload struct { // `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. // `failed` files have either not been processed at all, or could only be partially processed. ProcessingStatus *string `json:"processing_status,omitempty"` @@ -395,13 +395,13 @@ type SarifUpload struct { AnalysesURL *string `json:"analyses_url,omitempty"` } -// GetSarif get information about a SARIF upload. +// GetSARIF gets information about a SARIF upload. // // You must use an access token with the security_events scope to use this endpoint. // GitHub Apps must have the security_events read permission to use this endpoint. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#get-information-about-a-sarif-upload -func (s *CodeScanningService) GetSarif(ctx context.Context, owner, repo, id string) (*SarifUpload, *Response, error) { +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload +func (s *CodeScanningService) GetSARIF(ctx context.Context, owner, repo, id string) (*SARIFUpload, *Response, error) { u := fmt.Sprintf("repos/%v/%v/code-scanning/sarifs/%v", owner, repo, id) req, err := s.client.NewRequest("GET", u, nil) @@ -409,7 +409,7 @@ func (s *CodeScanningService) GetSarif(ctx context.Context, owner, repo, id stri return nil, nil, err } - sarifUpload := new(SarifUpload) + sarifUpload := new(SARIFUpload) resp, err := s.client.Do(ctx, req, sarifUpload) if err != nil { return nil, resp, err @@ -424,7 +424,7 @@ func (s *CodeScanningService) GetSarif(ctx context.Context, owner, repo, id stri // You must use an access token with the security_events scope to use this endpoint. // GitHub Apps must have the security_events read permission to use this endpoint. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#list-code-scanning-analyses-for-a-repository +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#list-code-scanning-analyses-for-a-repository func (s *CodeScanningService) ListAnalysesForRepo(ctx context.Context, owner, repo string, opts *AnalysesListOptions) ([]*ScanningAnalysis, *Response, error) { u := fmt.Sprintf("repos/%v/%v/code-scanning/analyses", owner, repo) u, err := addOptions(u, opts) @@ -453,7 +453,7 @@ func (s *CodeScanningService) ListAnalysesForRepo(ctx context.Context, owner, re // // The security analysis_id is the ID of the analysis, as returned from the ListAnalysesForRepo operation. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#get-a-code-scanning-analysis-for-a-repository +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository func (s *CodeScanningService) GetAnalysis(ctx context.Context, owner, repo string, id int64) (*ScanningAnalysis, *Response, error) { u := fmt.Sprintf("repos/%v/%v/code-scanning/analyses/%v", owner, repo, id) @@ -471,7 +471,7 @@ func (s *CodeScanningService) GetAnalysis(ctx context.Context, owner, repo strin return analysis, resp, nil } -// DeleteAnalysis represents a successful deletion of a code scanning analysis +// DeleteAnalysis represents a successful deletion of a code scanning analysis. type DeleteAnalysis struct { // Next deletable analysis in chain, without last analysis deletion confirmation NextAnalysisURL *string `json:"next_analysis_url,omitempty"` @@ -486,8 +486,7 @@ type DeleteAnalysis struct { // // The security analysis_id is the ID of the analysis, as returned from the ListAnalysesForRepo operation. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#delete-a-code-scanning-analysis-from-a-repository - +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#delete-a-code-scanning-analysis-from-a-repository func (s *CodeScanningService) DeleteAnalysis(ctx context.Context, owner, repo string, id int64) (*DeleteAnalysis, *Response, error) { u := fmt.Sprintf("repos/%v/%v/code-scanning/analyses/%v", owner, repo, id) @@ -505,13 +504,13 @@ func (s *CodeScanningService) DeleteAnalysis(ctx context.Context, owner, repo st return deleteAnalysis, resp, nil } -// ListCodeqlDatabases lists the CodeQL databases that are available in a repository. +// ListCodeQLDatabases lists the CodeQL databases that are available in a repository. // // You must use an access token with the security_events scope to use this endpoint. // GitHub Apps must have the contents read permission to use this endpoint. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#list-codeql-databases-for-a-repository -func (s *CodeScanningService) ListCodeqlDatabases(ctx context.Context, owner, repo string) ([]*CodeqlDatabase, *Response, error) { +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#list-codeql-databases-for-a-repository +func (s *CodeScanningService) ListCodeQLDatabases(ctx context.Context, owner, repo string) ([]*CodeQLDatabase, *Response, error) { u := fmt.Sprintf("repos/%v/%v/code-scanning/codeql/databases", owner, repo) req, err := s.client.NewRequest("GET", u, nil) @@ -519,7 +518,7 @@ func (s *CodeScanningService) ListCodeqlDatabases(ctx context.Context, owner, re return nil, nil, err } - var codeqlDatabases []*CodeqlDatabase + var codeqlDatabases []*CodeQLDatabase resp, err := s.client.Do(ctx, req, &codeqlDatabases) if err != nil { return nil, resp, err @@ -528,13 +527,13 @@ func (s *CodeScanningService) ListCodeqlDatabases(ctx context.Context, owner, re return codeqlDatabases, resp, nil } -// GetCodeqlDatabase gets a CodeQL database for a language in a repository. +// GetCodeQLDatabase gets a CodeQL database for a language in a repository. // // You must use an access token with the security_events scope to use this endpoint. // GitHub Apps must have the contents read permission to use this endpoint. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#get-a-codeql-database-for-a-repository -func (s *CodeScanningService) GetCodeqlDatabase(ctx context.Context, owner, repo, language string) (*CodeqlDatabase, *Response, error) { +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#get-a-codeql-database-for-a-repository +func (s *CodeScanningService) GetCodeQLDatabase(ctx context.Context, owner, repo, language string) (*CodeQLDatabase, *Response, error) { u := fmt.Sprintf("repos/%v/%v/code-scanning/codeql/databases/%v", owner, repo, language) req, err := s.client.NewRequest("GET", u, nil) @@ -542,7 +541,7 @@ func (s *CodeScanningService) GetCodeqlDatabase(ctx context.Context, owner, repo return nil, nil, err } - codeqlDatabase := new(CodeqlDatabase) + codeqlDatabase := new(CodeQLDatabase) resp, err := s.client.Do(ctx, req, codeqlDatabase) if err != nil { return nil, resp, err @@ -565,7 +564,7 @@ type DefaultSetupConfiguration struct { // endpoint with private repos or the public_repo scope for public repos. GitHub Apps must have the repo write // permission to use this endpoint. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#get-a-code-scanning-default-setup-configuration +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#get-a-code-scanning-default-setup-configuration func (s *CodeScanningService) GetDefaultSetupConfiguration(ctx context.Context, owner, repo string) (*DefaultSetupConfiguration, *Response, error) { u := fmt.Sprintf("repos/%s/%s/code-scanning/default-setup", owner, repo) @@ -606,7 +605,7 @@ type UpdateDefaultSetupConfigurationResponse struct { // This method might return an AcceptedError and a status code of 202. This is because this is the status that GitHub // returns to signify that it has now scheduled the update of the pull request branch in a background task. // -// GitHub API docs: https://docs.github.com/en/rest/code-scanning#update-a-code-scanning-default-setup-configuration +// GitHub API docs: https://docs.github.com/en/rest/code-scanning/code-scanning#update-a-code-scanning-default-setup-configuration func (s *CodeScanningService) UpdateDefaultSetupConfiguration(ctx context.Context, owner, repo string, options *UpdateDefaultSetupConfigurationOptions) (*UpdateDefaultSetupConfigurationResponse, *Response, error) { u := fmt.Sprintf("repos/%s/%s/code-scanning/default-setup", owner, repo) diff --git a/github/code-scanning_test.go b/github/code-scanning_test.go index 1f78d0f0734..e42f1d8b37f 100644 --- a/github/code-scanning_test.go +++ b/github/code-scanning_test.go @@ -89,7 +89,7 @@ func TestCodeScanningService_UploadSarif(t *testing.T) { }) } -func TestCodeScanningService_GetSarif(t *testing.T) { +func TestCodeScanningService_GetSARIF(t *testing.T) { client, mux, _, teardown := setup() defer teardown() @@ -102,27 +102,27 @@ func TestCodeScanningService_GetSarif(t *testing.T) { }) ctx := context.Background() - sarifUpload, _, err := client.CodeScanning.GetSarif(ctx, "o", "r", "abc") + sarifUpload, _, err := client.CodeScanning.GetSARIF(ctx, "o", "r", "abc") if err != nil { - t.Errorf("CodeScanning.GetSarif returned error: %v", err) + t.Errorf("CodeScanning.GetSARIF returned error: %v", err) } - want := &SarifUpload{ + want := &SARIFUpload{ ProcessingStatus: String("s"), AnalysesURL: String("u"), } if !cmp.Equal(sarifUpload, want) { - t.Errorf("CodeScanning.GetSarif returned %+v, want %+v", sarifUpload, want) + t.Errorf("CodeScanning.GetSARIF returned %+v, want %+v", sarifUpload, want) } - const methodName = "GetSarif" + const methodName = "GetSARIF" testBadOptions(t, methodName, func() (err error) { - _, _, err = client.CodeScanning.GetSarif(ctx, "\n", "\n", "\n") + _, _, err = client.CodeScanning.GetSARIF(ctx, "\n", "\n", "\n") return err }) testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { - got, resp, err := client.CodeScanning.GetSarif(ctx, "o", "r", "abc") + got, resp, err := client.CodeScanning.GetSARIF(ctx, "o", "r", "abc") if got != nil { t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) } @@ -1341,7 +1341,7 @@ func TestCodeScanningService_DeleteAnalysis(t *testing.T) { }) } -func TestCodeScanningService_ListCodeqlDatabases(t *testing.T) { +func TestCodeScanningService_ListCodeQLDatabases(t *testing.T) { client, mux, _, teardown := setup() defer teardown() @@ -1382,13 +1382,13 @@ func TestCodeScanningService_ListCodeqlDatabases(t *testing.T) { }) ctx := context.Background() - databases, _, err := client.CodeScanning.ListCodeqlDatabases(ctx, "o", "r") + databases, _, err := client.CodeScanning.ListCodeQLDatabases(ctx, "o", "r") if err != nil { - t.Errorf("CodeScanning.ListCodeqlDatabases returned error: %v", err) + t.Errorf("CodeScanning.ListCodeQLDatabases returned error: %v", err) } date := &Timestamp{time.Date(2021, time.January, 13, 11, 55, 49, 0, time.UTC)} - want := []*CodeqlDatabase{ + want := []*CodeQLDatabase{ { ID: Int64(1), Name: String("name"), @@ -1422,17 +1422,17 @@ func TestCodeScanningService_ListCodeqlDatabases(t *testing.T) { } if !cmp.Equal(databases, want) { - t.Errorf("CodeScanning.ListCodeqlDatabases returned %+v, want %+v", databases, want) + t.Errorf("CodeScanning.ListCodeQLDatabases returned %+v, want %+v", databases, want) } - const methodName = "ListCodeqlDatabases" + const methodName = "ListCodeQLDatabases" testBadOptions(t, methodName, func() (err error) { - _, _, err = client.CodeScanning.ListCodeqlDatabases(ctx, "\n", "\n") + _, _, err = client.CodeScanning.ListCodeQLDatabases(ctx, "\n", "\n") return err }) testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { - got, resp, err := client.CodeScanning.ListCodeqlDatabases(ctx, "o", "r") + got, resp, err := client.CodeScanning.ListCodeQLDatabases(ctx, "o", "r") if got != nil { t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) } @@ -1440,7 +1440,7 @@ func TestCodeScanningService_ListCodeqlDatabases(t *testing.T) { }) } -func TestCodeScanningService_GetCodeqlDatabase(t *testing.T) { +func TestCodeScanningService_GetCodeQLDatabase(t *testing.T) { client, mux, _, teardown := setup() defer teardown() @@ -1479,13 +1479,13 @@ func TestCodeScanningService_GetCodeqlDatabase(t *testing.T) { }) ctx := context.Background() - database, _, err := client.CodeScanning.GetCodeqlDatabase(ctx, "o", "r", "lang") + database, _, err := client.CodeScanning.GetCodeQLDatabase(ctx, "o", "r", "lang") if err != nil { - t.Errorf("CodeScanning.GetCodeqlDatabase returned error: %v", err) + t.Errorf("CodeScanning.GetCodeQLDatabase returned error: %v", err) } date := &Timestamp{time.Date(2021, time.January, 13, 11, 55, 49, 0, time.UTC)} - want := &CodeqlDatabase{ + want := &CodeQLDatabase{ ID: Int64(1), Name: String("name"), Language: String("language"), @@ -1517,17 +1517,17 @@ func TestCodeScanningService_GetCodeqlDatabase(t *testing.T) { } if !cmp.Equal(database, want) { - t.Errorf("CodeScanning.GetCodeqlDatabase returned %+v, want %+v", database, want) + t.Errorf("CodeScanning.GetCodeQLDatabase returned %+v, want %+v", database, want) } - const methodName = "GetCodeqlDatabase" + const methodName = "GetCodeQLDatabase" testBadOptions(t, methodName, func() (err error) { - _, _, err = client.CodeScanning.GetCodeqlDatabase(ctx, "\n", "\n", "\n") + _, _, err = client.CodeScanning.GetCodeQLDatabase(ctx, "\n", "\n", "\n") return err }) testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { - got, resp, err := client.CodeScanning.GetCodeqlDatabase(ctx, "o", "r", "lang") + got, resp, err := client.CodeScanning.GetCodeQLDatabase(ctx, "o", "r", "lang") if got != nil { t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) } diff --git a/github/github-accessors.go b/github/github-accessors.go index d002daa0287..c354e3d7fcd 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -2831,7 +2831,7 @@ func (c *CodeownersError) GetSuggestion() string { } // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. -func (c *CodeqlDatabase) GetContentType() string { +func (c *CodeQLDatabase) GetContentType() string { if c == nil || c.ContentType == nil { return "" } @@ -2839,7 +2839,7 @@ func (c *CodeqlDatabase) GetContentType() string { } // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. -func (c *CodeqlDatabase) GetCreatedAt() Timestamp { +func (c *CodeQLDatabase) GetCreatedAt() Timestamp { if c == nil || c.CreatedAt == nil { return Timestamp{} } @@ -2847,7 +2847,7 @@ func (c *CodeqlDatabase) GetCreatedAt() Timestamp { } // GetID returns the ID field if it's non-nil, zero value otherwise. -func (c *CodeqlDatabase) GetID() int64 { +func (c *CodeQLDatabase) GetID() int64 { if c == nil || c.ID == nil { return 0 } @@ -2855,7 +2855,7 @@ func (c *CodeqlDatabase) GetID() int64 { } // GetLanguage returns the Language field if it's non-nil, zero value otherwise. -func (c *CodeqlDatabase) GetLanguage() string { +func (c *CodeQLDatabase) GetLanguage() string { if c == nil || c.Language == nil { return "" } @@ -2863,7 +2863,7 @@ func (c *CodeqlDatabase) GetLanguage() string { } // GetName returns the Name field if it's non-nil, zero value otherwise. -func (c *CodeqlDatabase) GetName() string { +func (c *CodeQLDatabase) GetName() string { if c == nil || c.Name == nil { return "" } @@ -2871,7 +2871,7 @@ func (c *CodeqlDatabase) GetName() string { } // GetSize returns the Size field if it's non-nil, zero value otherwise. -func (c *CodeqlDatabase) GetSize() int64 { +func (c *CodeQLDatabase) GetSize() int64 { if c == nil || c.Size == nil { return 0 } @@ -2879,7 +2879,7 @@ func (c *CodeqlDatabase) GetSize() int64 { } // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. -func (c *CodeqlDatabase) GetUpdatedAt() Timestamp { +func (c *CodeQLDatabase) GetUpdatedAt() Timestamp { if c == nil || c.UpdatedAt == nil { return Timestamp{} } @@ -2887,7 +2887,7 @@ func (c *CodeqlDatabase) GetUpdatedAt() Timestamp { } // GetUploader returns the Uploader field. -func (c *CodeqlDatabase) GetUploader() *User { +func (c *CodeQLDatabase) GetUploader() *User { if c == nil { return nil } @@ -2895,7 +2895,7 @@ func (c *CodeqlDatabase) GetUploader() *User { } // GetURL returns the URL field if it's non-nil, zero value otherwise. -func (c *CodeqlDatabase) GetURL() string { +func (c *CodeQLDatabase) GetURL() string { if c == nil || c.URL == nil { return "" } @@ -20151,7 +20151,7 @@ func (s *SarifID) GetURL() string { } // GetAnalysesURL returns the AnalysesURL field if it's non-nil, zero value otherwise. -func (s *SarifUpload) GetAnalysesURL() string { +func (s *SARIFUpload) GetAnalysesURL() string { if s == nil || s.AnalysesURL == nil { return "" } @@ -20159,7 +20159,7 @@ func (s *SarifUpload) GetAnalysesURL() string { } // GetProcessingStatus returns the ProcessingStatus field if it's non-nil, zero value otherwise. -func (s *SarifUpload) GetProcessingStatus() string { +func (s *SARIFUpload) GetProcessingStatus() string { if s == nil || s.ProcessingStatus == nil { return "" } diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 9dc6537ab78..34a9ed9c536 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -3364,88 +3364,88 @@ func TestCodeownersError_GetSuggestion(tt *testing.T) { c.GetSuggestion() } -func TestCodeqlDatabase_GetContentType(tt *testing.T) { +func TestCodeQLDatabase_GetContentType(tt *testing.T) { var zeroValue string - c := &CodeqlDatabase{ContentType: &zeroValue} + c := &CodeQLDatabase{ContentType: &zeroValue} c.GetContentType() - c = &CodeqlDatabase{} + c = &CodeQLDatabase{} c.GetContentType() c = nil c.GetContentType() } -func TestCodeqlDatabase_GetCreatedAt(tt *testing.T) { +func TestCodeQLDatabase_GetCreatedAt(tt *testing.T) { var zeroValue Timestamp - c := &CodeqlDatabase{CreatedAt: &zeroValue} + c := &CodeQLDatabase{CreatedAt: &zeroValue} c.GetCreatedAt() - c = &CodeqlDatabase{} + c = &CodeQLDatabase{} c.GetCreatedAt() c = nil c.GetCreatedAt() } -func TestCodeqlDatabase_GetID(tt *testing.T) { +func TestCodeQLDatabase_GetID(tt *testing.T) { var zeroValue int64 - c := &CodeqlDatabase{ID: &zeroValue} + c := &CodeQLDatabase{ID: &zeroValue} c.GetID() - c = &CodeqlDatabase{} + c = &CodeQLDatabase{} c.GetID() c = nil c.GetID() } -func TestCodeqlDatabase_GetLanguage(tt *testing.T) { +func TestCodeQLDatabase_GetLanguage(tt *testing.T) { var zeroValue string - c := &CodeqlDatabase{Language: &zeroValue} + c := &CodeQLDatabase{Language: &zeroValue} c.GetLanguage() - c = &CodeqlDatabase{} + c = &CodeQLDatabase{} c.GetLanguage() c = nil c.GetLanguage() } -func TestCodeqlDatabase_GetName(tt *testing.T) { +func TestCodeQLDatabase_GetName(tt *testing.T) { var zeroValue string - c := &CodeqlDatabase{Name: &zeroValue} + c := &CodeQLDatabase{Name: &zeroValue} c.GetName() - c = &CodeqlDatabase{} + c = &CodeQLDatabase{} c.GetName() c = nil c.GetName() } -func TestCodeqlDatabase_GetSize(tt *testing.T) { +func TestCodeQLDatabase_GetSize(tt *testing.T) { var zeroValue int64 - c := &CodeqlDatabase{Size: &zeroValue} + c := &CodeQLDatabase{Size: &zeroValue} c.GetSize() - c = &CodeqlDatabase{} + c = &CodeQLDatabase{} c.GetSize() c = nil c.GetSize() } -func TestCodeqlDatabase_GetUpdatedAt(tt *testing.T) { +func TestCodeQLDatabase_GetUpdatedAt(tt *testing.T) { var zeroValue Timestamp - c := &CodeqlDatabase{UpdatedAt: &zeroValue} + c := &CodeQLDatabase{UpdatedAt: &zeroValue} c.GetUpdatedAt() - c = &CodeqlDatabase{} + c = &CodeQLDatabase{} c.GetUpdatedAt() c = nil c.GetUpdatedAt() } -func TestCodeqlDatabase_GetUploader(tt *testing.T) { - c := &CodeqlDatabase{} +func TestCodeQLDatabase_GetUploader(tt *testing.T) { + c := &CodeQLDatabase{} c.GetUploader() c = nil c.GetUploader() } -func TestCodeqlDatabase_GetURL(tt *testing.T) { +func TestCodeQLDatabase_GetURL(tt *testing.T) { var zeroValue string - c := &CodeqlDatabase{URL: &zeroValue} + c := &CodeQLDatabase{URL: &zeroValue} c.GetURL() - c = &CodeqlDatabase{} + c = &CodeQLDatabase{} c.GetURL() c = nil c.GetURL() @@ -23490,21 +23490,21 @@ func TestSarifID_GetURL(tt *testing.T) { s.GetURL() } -func TestSarifUpload_GetAnalysesURL(tt *testing.T) { +func TestSARIFUpload_GetAnalysesURL(tt *testing.T) { var zeroValue string - s := &SarifUpload{AnalysesURL: &zeroValue} + s := &SARIFUpload{AnalysesURL: &zeroValue} s.GetAnalysesURL() - s = &SarifUpload{} + s = &SARIFUpload{} s.GetAnalysesURL() s = nil s.GetAnalysesURL() } -func TestSarifUpload_GetProcessingStatus(tt *testing.T) { +func TestSARIFUpload_GetProcessingStatus(tt *testing.T) { var zeroValue string - s := &SarifUpload{ProcessingStatus: &zeroValue} + s := &SARIFUpload{ProcessingStatus: &zeroValue} s.GetProcessingStatus() - s = &SarifUpload{} + s = &SARIFUpload{} s.GetProcessingStatus() s = nil s.GetProcessingStatus()