(t *testing.T)
| 1013 | } |
| 1014 | |
| 1015 | func TestContextSetCookiePathEmpty(t *testing.T) { |
| 1016 | c, _ := CreateTestContext(httptest.NewRecorder()) |
| 1017 | c.SetSameSite(http.SameSiteLaxMode) |
| 1018 | c.SetCookie("user", "gin", 1, "", "localhost", true, true) |
| 1019 | assert.Equal(t, "user=gin; Path=/; Domain=localhost; Max-Age=1; HttpOnly; Secure; SameSite=Lax", c.Writer.Header().Get("Set-Cookie")) |
| 1020 | } |
| 1021 | |
| 1022 | func TestContextGetCookie(t *testing.T) { |
| 1023 | c, _ := CreateTestContext(httptest.NewRecorder()) |
nothing calls this directly
no test coverage detected