Skip to content

Commit 2412b44

Browse files
authored
Merge branch 'main' into codex/add-test-for-validateflags-in-updateprs_test
2 parents 7f1563f + c542eb5 commit 2412b44

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
coverage.txt
55
.vscode
66
.idea
7+
*.test

internal/github/util_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/stretchr/testify/assert"
2222
)
2323

24-
func TestuserHasPushPermissionReturnsTrueForAllCases(t *testing.T) {
24+
func TestUserHasPushPermissionReturnsTrueForAllCases(t *testing.T) {
2525
testCases := []string{
2626
`{"viewerPermission":"WRITE"}`,
2727
`{"viewerPermission":"MAINTAIN"}`,
@@ -35,7 +35,7 @@ func TestuserHasPushPermissionReturnsTrueForAllCases(t *testing.T) {
3535
}
3636
}
3737

38-
func TestuserHasPushPermissionReturnsFalseForUnknownPermission(t *testing.T) {
38+
func TestUserHasPushPermissionReturnsFalseForUnknownPermission(t *testing.T) {
3939
testCases := []string{
4040
`{"viewerPermission":"UNKNOWN"}`,
4141
`{"viewerPermission":"READ"}`,
@@ -51,7 +51,7 @@ func TestuserHasPushPermissionReturnsFalseForUnknownPermission(t *testing.T) {
5151
}
5252
}
5353

54-
func TestuserHasPushPermissionReturnsErrorForInvalidJSON(t *testing.T) {
54+
func TestUserHasPushPermissionReturnsErrorForInvalidJSON(t *testing.T) {
5555
testCases := []string{
5656
`{"viewerPermission":"WRITE"`, // invalid JSON
5757
`viewerPermission: WRITE`, // invalid JSON

0 commit comments

Comments
 (0)