Skip to content

fix: SetContext covers value #1511

fix: SetContext covers value

fix: SetContext covers value #1511

Triggered via pull request November 20, 2023 03:57
Status Failure
Total duration 8m 4s
Artifacts

test.yml

on: pull_request
Matrix: test
Matrix: windows
Fit to window
Zoom out
Zoom in

Annotations

38 errors
test (1.20): auth/auth_test.go#L88
cannot use &Context{…} (value of type *Context) as "github.com/goravel/framework/contracts/http".Context value in return statement: *Context does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.20): http/middleware/throttle_test.go#L50
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.20): http/middleware/throttle_test.go#L70
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.20): http/middleware/throttle_test.go#L100
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.20): http/middleware/throttle_test.go#L127
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.20): http/middleware/throttle_test.go#L152
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.20): http/middleware/throttle_test.go#L177
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.20): http/middleware/throttle_test.go#L207
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.20)
Process completed with exit code 1.
test (1.21)
The job was canceled because "_1_20" failed.
test (1.21): auth/auth_test.go#L88
cannot use &Context{…} (value of type *Context) as "github.com/goravel/framework/contracts/http".Context value in return statement: *Context does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.21): http/middleware/throttle_test.go#L50
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.21): http/middleware/throttle_test.go#L70
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.21): http/middleware/throttle_test.go#L100
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.21): http/middleware/throttle_test.go#L127
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.21): http/middleware/throttle_test.go#L152
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.21): http/middleware/throttle_test.go#L177
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.21): http/middleware/throttle_test.go#L207
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
test (1.21)
Process completed with exit code 1.
windows (1.21): auth/auth_test.go#L88
cannot use &Context{…} (value of type *Context) as "github.com/goravel/framework/contracts/http".Context value in return statement: *Context does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.21): http/middleware/throttle_test.go#L50
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.21): http/middleware/throttle_test.go#L70
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.21): http/middleware/throttle_test.go#L100
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.21): http/middleware/throttle_test.go#L127
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.21): http/middleware/throttle_test.go#L152
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.21): http/middleware/throttle_test.go#L177
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.21): http/middleware/throttle_test.go#L207
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.21)
Process completed with exit code 1.
windows (1.20)
The job was canceled because "_1_21" failed.
windows (1.20): auth/auth_test.go#L88
cannot use &Context{…} (value of type *Context) as "github.com/goravel/framework/contracts/http".Context value in return statement: *Context does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.20): http/middleware/throttle_test.go#L50
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.20): http/middleware/throttle_test.go#L70
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.20): http/middleware/throttle_test.go#L100
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.20): http/middleware/throttle_test.go#L127
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.20): http/middleware/throttle_test.go#L152
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.20): http/middleware/throttle_test.go#L177
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.20): http/middleware/throttle_test.go#L207
cannot use ctx (variable of type *TestContext) as "github.com/goravel/framework/contracts/http".Context value in argument to Throttle("test"): *TestContext does not implement "github.com/goravel/framework/contracts/http".Context (wrong type for method SetContext)
windows (1.20)
The operation was canceled.