Skip to content

Task/tests for trips #262

Task/tests for trips

Task/tests for trips #262

Triggered via pull request November 27, 2024 08:54
Status Failure
Total duration 45s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
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: internal/pkg/attractions/usecase/usecase_test.go#L235
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#L296
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#L297
not enough arguments in call to u.SearchPlaces
linters: internal/pkg/attractions/usecase/usecase_test.go#L359
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/categories/delivery/http/handler_test.go#L29
cannot use mockUsecase (variable of type *mock_categories.MockCategoriesRepository) as gen.CategoriesClient value in argument to NewCategoriesHandler: *mock_categories.MockCategoriesRepository does not implement gen.CategoriesClient (wrong type for method GetCategories)
linters
issues found
linters
Restore cache failed: Dependencies file is not found in /home/runner/work/2024_2_ThereWillBeName/2024_2_ThereWillBeName. Supported file pattern: go.sum