Skip to content

test: mockery

test: mockery #2353

Triggered via pull request September 8, 2024 15:51
Status Failure
Total duration 1m 52s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 1 warning
lint / lint: auth/auth_test.go#L84
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 WithValue)
lint / lint: foundation/container.go#L42
could not import github.com/goravel/framework/http (-: # github.com/goravel/framework/http
lint / lint: http/context.go#L10
cannot use NewContext() (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 WithValue)
lint / lint: http/context.go#L10
cannot use NewContext() (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 WithValue)
lint / lint: http/limit/store.go#L8
could not import github.com/goravel/framework/http (-: # github.com/goravel/framework/http
lint / lint: http/context.go#L10
cannot use NewContext() (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 WithValue)
lint / lint: http/middleware/throttle.go#L8
could not import github.com/goravel/framework/http (-: # github.com/goravel/framework/http
lint / lint: http/context.go#L10
cannot use NewContext() (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 WithValue)
lint / lint: http/middleware/throttle_test.go#L49
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 WithValue)
lint / lint: http/middleware/throttle_test.go#L69
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 WithValue)
lint / nilaway: http/context.go#L10
cannot use NewContext() (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 WithValue)
lint / nilaway: auth/auth_test.go#L84
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 WithValue)
lint / nilaway: http/context.go#L10
cannot use NewContext() (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 WithValue)
lint / nilaway: http/middleware/throttle_test.go#L49
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 WithValue)
lint / nilaway: http/middleware/throttle_test.go#L69
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 WithValue)
lint / nilaway: http/middleware/throttle_test.go#L93
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 WithValue)
lint / nilaway: http/middleware/throttle_test.go#L117
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 WithValue)
lint / nilaway: http/middleware/throttle_test.go#L143
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 WithValue)
lint / nilaway: http/middleware/throttle_test.go#L147
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 WithValue)
lint / nilaway: http/middleware/throttle_test.go#L178
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 WithValue)
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2