Skip to content

Merge pull request #51 from go-park-mail-ru/task/tests_for_trips #266

Merge pull request #51 from go-park-mail-ru/task/tests_for_trips

Merge pull request #51 from go-park-mail-ru/task/tests_for_trips #266

Triggered via push November 27, 2024 09:56
Status Failure
Total duration 42s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
linters: internal/pkg/attractions/repo/place_repository_test.go#L43
cannot use db (variable of type *sql.DB) as *dblogger.DB value in argument to NewPLaceRepository
linters: internal/pkg/attractions/repo/place_repository_test.go#L61
cannot use db (variable of type *sql.DB) as *dblogger.DB value in argument to NewPLaceRepository
linters: internal/pkg/attractions/repo/place_repository_test.go#L78
cannot use db (variable of type *sql.DB) as *dblogger.DB value in argument to NewPLaceRepository
linters: internal/pkg/attractions/repo/place_repository_test.go#L134
cannot use db (variable of type *sql.DB) as *dblogger.DB value in argument to NewPLaceRepository
linters: internal/pkg/attractions/repo/place_repository_test.go#L152
cannot use db (variable of type *sql.DB) as *dblogger.DB value in argument to NewPLaceRepository
linters: internal/pkg/attractions/repo/place_repository_test.go#L191
cannot use db (variable of type *sql.DB) as *dblogger.DB value in argument to NewPLaceRepository (typecheck)
linters: internal/pkg/attractions/usecase/usecase_test.go#L68
cannot use repo (variable of type *mock_attractions.MockPlaceRepo) as attractions.PlaceRepo value in argument to NewPlaceUsecase: *mock_attractions.MockPlaceRepo does not implement attractions.PlaceRepo (wrong type for method SearchPlaces)
linters: internal/pkg/attractions/usecase/usecase_test.go#L112
cannot use repo (variable of type *mock_attractions.MockPlaceRepo) as attractions.PlaceRepo value in argument to NewPlaceUsecase: *mock_attractions.MockPlaceRepo does not implement attractions.PlaceRepo (wrong type for method SearchPlaces)
linters: internal/pkg/attractions/usecase/usecase_test.go#L145
cannot use repo (variable of type *mock_attractions.MockPlaceRepo) as attractions.PlaceRepo value in argument to NewPlaceUsecase: *mock_attractions.MockPlaceRepo does not implement attractions.PlaceRepo (wrong type for method SearchPlaces)
linters: internal/pkg/attractions/usecase/usecase_test.go#L188
cannot use repo (variable of type *mock_attractions.MockPlaceRepo) as attractions.PlaceRepo value in argument to NewPlaceUsecase: *mock_attractions.MockPlaceRepo does not implement attractions.PlaceRepo (wrong type for method SearchPlaces)
linters
Restore cache failed: Dependencies file is not found in /home/runner/work/2024_2_ThereWillBeName/2024_2_ThereWillBeName. Supported file pattern: go.sum