Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b9a0b1

Browse files
CopilotJoannaaKL
authored andcommitted
Fix linting issues in helper constants
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
1 parentb81df99 commit3b9a0b1

File tree

4 files changed

+114
-114
lines changed

4 files changed

+114
-114
lines changed

‎pkg/github/actions_test.go‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func Test_RunWorkflow(t *testing.T) {
158158
{
159159
name:"successful workflow run",
160160
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
161-
PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
161+
PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
162162
w.WriteHeader(http.StatusNoContent)
163163
}),
164164
}),
@@ -233,7 +233,7 @@ func Test_RunWorkflow_WithFilename(t *testing.T) {
233233
{
234234
name:"successful workflow run by filename",
235235
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
236-
PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
236+
PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
237237
w.WriteHeader(http.StatusNoContent)
238238
}),
239239
}),
@@ -248,7 +248,7 @@ func Test_RunWorkflow_WithFilename(t *testing.T) {
248248
{
249249
name:"successful workflow run by numeric ID as string",
250250
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
251-
PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
251+
PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
252252
w.WriteHeader(http.StatusNoContent)
253253
}),
254254
}),
@@ -429,7 +429,7 @@ func Test_ListWorkflowRunArtifacts(t *testing.T) {
429429
{
430430
name:"successful artifacts listing",
431431
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
432-
GetReposActionsRunsArtifactsByOwnerByRepoByRunId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
432+
GetReposActionsRunsArtifactsByOwnerByRepoByRunID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
433433
artifacts:=&github.ArtifactList{
434434
TotalCount:github.Ptr(int64(2)),
435435
Artifacts: []*github.Artifact{
@@ -640,7 +640,7 @@ func Test_DeleteWorkflowRunLogs(t *testing.T) {
640640
{
641641
name:"successful logs deletion",
642642
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
643-
DeleteReposActionsRunsLogsByOwnerByRepoByRunId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
643+
DeleteReposActionsRunsLogsByOwnerByRepoByRunID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
644644
w.WriteHeader(http.StatusNoContent)
645645
}),
646646
}),
@@ -721,7 +721,7 @@ func Test_GetWorkflowRunUsage(t *testing.T) {
721721
{
722722
name:"successful workflow run usage",
723723
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
724-
GetReposActionsRunsTimingByOwnerByRepoByRunId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
724+
GetReposActionsRunsTimingByOwnerByRepoByRunID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
725725
usage:=&github.WorkflowRunUsage{
726726
Billable:&github.WorkflowRunBillMap{
727727
"UBUNTU":&github.WorkflowRunBill{
@@ -826,7 +826,7 @@ func Test_GetJobLogs(t *testing.T) {
826826
{
827827
name:"successful single job logs with URL",
828828
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
829-
GetReposActionsJobsLogsByOwnerByRepoByJobId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
829+
GetReposActionsJobsLogsByOwnerByRepoByJobID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
830830
w.Header().Set("Location","https://github.com/logs/job/123")
831831
w.WriteHeader(http.StatusFound)
832832
}),
@@ -847,7 +847,7 @@ func Test_GetJobLogs(t *testing.T) {
847847
{
848848
name:"successful failed jobs logs",
849849
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
850-
GetReposActionsRunsJobsByOwnerByRepoByRunId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
850+
GetReposActionsRunsJobsByOwnerByRepoByRunID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
851851
jobs:=&github.Jobs{
852852
TotalCount:github.Ptr(3),
853853
Jobs: []*github.WorkflowJob{
@@ -871,7 +871,7 @@ func Test_GetJobLogs(t *testing.T) {
871871
w.WriteHeader(http.StatusOK)
872872
_=json.NewEncoder(w).Encode(jobs)
873873
}),
874-
GetReposActionsJobsLogsByOwnerByRepoByJobId:http.HandlerFunc(func(w http.ResponseWriter,r*http.Request) {
874+
GetReposActionsJobsLogsByOwnerByRepoByJobID:http.HandlerFunc(func(w http.ResponseWriter,r*http.Request) {
875875
w.Header().Set("Location","https://github.com/logs/job/"+r.URL.Path[len(r.URL.Path)-1:])
876876
w.WriteHeader(http.StatusFound)
877877
}),
@@ -898,7 +898,7 @@ func Test_GetJobLogs(t *testing.T) {
898898
{
899899
name:"no failed jobs found",
900900
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
901-
GetReposActionsRunsJobsByOwnerByRepoByRunId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
901+
GetReposActionsRunsJobsByOwnerByRepoByRunID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
902902
jobs:=&github.Jobs{
903903
TotalCount:github.Ptr(2),
904904
Jobs: []*github.WorkflowJob{
@@ -976,7 +976,7 @@ func Test_GetJobLogs(t *testing.T) {
976976
{
977977
name:"API error when getting single job logs",
978978
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
979-
GetReposActionsJobsLogsByOwnerByRepoByJobId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
979+
GetReposActionsJobsLogsByOwnerByRepoByJobID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
980980
w.WriteHeader(http.StatusNotFound)
981981
_=json.NewEncoder(w).Encode(map[string]string{
982982
"message":"Not Found",
@@ -993,7 +993,7 @@ func Test_GetJobLogs(t *testing.T) {
993993
{
994994
name:"API error when listing workflow jobs for failed_only",
995995
mockedClient:MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
996-
GetReposActionsRunsJobsByOwnerByRepoByRunId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
996+
GetReposActionsRunsJobsByOwnerByRepoByRunID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
997997
w.WriteHeader(http.StatusNotFound)
998998
_=json.NewEncoder(w).Encode(map[string]string{
999999
"message":"Not Found",
@@ -1067,7 +1067,7 @@ func Test_GetJobLogs_WithContentReturn(t *testing.T) {
10671067
defertestServer.Close()
10681068

10691069
mockedClient:=MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
1070-
GetReposActionsJobsLogsByOwnerByRepoByJobId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
1070+
GetReposActionsJobsLogsByOwnerByRepoByJobID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
10711071
w.Header().Set("Location",testServer.URL)
10721072
w.WriteHeader(http.StatusFound)
10731073
}),
@@ -1116,7 +1116,7 @@ func Test_GetJobLogs_WithContentReturnAndTailLines(t *testing.T) {
11161116
defertestServer.Close()
11171117

11181118
mockedClient:=MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
1119-
GetReposActionsJobsLogsByOwnerByRepoByJobId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
1119+
GetReposActionsJobsLogsByOwnerByRepoByJobID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
11201120
w.Header().Set("Location",testServer.URL)
11211121
w.WriteHeader(http.StatusFound)
11221122
}),
@@ -1165,7 +1165,7 @@ func Test_GetJobLogs_WithContentReturnAndLargeTailLines(t *testing.T) {
11651165
defertestServer.Close()
11661166

11671167
mockedClient:=MockHTTPClientWithHandlers(map[string]http.HandlerFunc{
1168-
GetReposActionsJobsLogsByOwnerByRepoByJobId:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
1168+
GetReposActionsJobsLogsByOwnerByRepoByJobID:http.HandlerFunc(func(w http.ResponseWriter,_*http.Request) {
11691169
w.Header().Set("Location",testServer.URL)
11701170
w.WriteHeader(http.StatusFound)
11711171
}),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp