Skip to content

Commit

Permalink
chore: update name rule
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed Dec 26, 2019
1 parent 88466ca commit 4447bb3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tester/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func Options(t *testing.T, newStore storeFactory) {
c.String(200, ok)
})

test_option_same_site(t, r)
testOptionSameSitego(t, r)

res1 := httptest.NewRecorder()
req1, _ := http.NewRequest("GET", "/domain", nil)
Expand Down
2 changes: 1 addition & 1 deletion tester/tester_options_samesite_go1.10.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import (
"github.com/gin-gonic/gin"
)

func test_option_same_site(t *testing.T, r *gin.Engine) {
func testOptionSameSitego(t *testing.T, r *gin.Engine) {
// not supported
}
3 changes: 2 additions & 1 deletion tester/tester_options_samesite_go1.11.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.11

package tester

import (
Expand All @@ -11,7 +12,7 @@ import (
"github.com/gin-gonic/gin"
)

func test_option_same_site(t *testing.T, r *gin.Engine) {
func testOptionSameSitego(t *testing.T, r *gin.Engine) {

r.GET("/sameSite", func(c *gin.Context) {
session := sessions.Default(c)
Expand Down

0 comments on commit 4447bb3

Please sign in to comment.