Skip to content

Test course feature for lecturers #1482

Test course feature for lecturers

Test course feature for lecturers #1482

Triggered via pull request December 18, 2024 15:36
Status Failure
Total duration 1m 56s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 4 warnings
lint (./...): tools/testutils/testdata.go#L587
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./...): api/audit_test.go#L11
could not import github.com/TUM-Dev/gocast/tools/testutils (-: # github.com/TUM-Dev/gocast/tools/testutils
lint (./...): tools/testutils/testdata.go#L587
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse)) (typecheck)
lint (./...): api/courses_test.go#L72
cannot use mock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./...): api/courses_test.go#L115
cannot use mock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./...): api/courses_test.go#L1050
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./...): api/courses_test.go#L1079
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./...): api/courses_test.go#L1146
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./...): api/courses_test.go#L1173
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./...): api/courses_test.go#L1200
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./worker)
The job was canceled because "_" failed.
lint (./worker): tools/testutils/testdata.go#L587
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./worker): api/audit_test.go#L11
could not import github.com/TUM-Dev/gocast/tools/testutils (-: # github.com/TUM-Dev/gocast/tools/testutils
lint (./worker): tools/testutils/testdata.go#L587
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse)) (typecheck)
lint (./worker): api/courses_test.go#L72
cannot use mock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./worker): api/courses_test.go#L115
cannot use mock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./worker): api/courses_test.go#L1050
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./worker): api/courses_test.go#L1079
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./worker): api/courses_test.go#L1146
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./worker): api/courses_test.go#L1173
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./worker): api/courses_test.go#L1200
cannot use streamsMock (variable of type *mock_dao.MockStreamsDao) as dao.StreamsDao value in return statement: *mock_dao.MockStreamsDao does not implement dao.StreamsDao (missing method CreateOrGetTestCourse) (typecheck)
lint (./worker/edge)
The job was canceled because "_" failed.
lint (./worker/edge)
The operation was canceled.
lint (./...)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint (./...)
Restore cache failed: Dependencies file is not found in /home/runner/work/gocast/gocast. Supported file pattern: go.sum
lint (./worker)
Restore cache failed: Dependencies file is not found in /home/runner/work/gocast/gocast. Supported file pattern: go.sum
lint (./worker/edge)
Restore cache failed: Dependencies file is not found in /home/runner/work/gocast/gocast. Supported file pattern: go.sum