Skip to content

chore: cache feat & cache refactor #76

chore: cache feat & cache refactor

chore: cache feat & cache refactor #76

Triggered via pull request October 31, 2023 10:21
@flc1125flc1125
synchronize #14
feat-cache
Status Failure
Total duration 56s
Artifacts

go.yml

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

Annotations

43 errors
go test (1.20.x, ubuntu-latest): cache/respository_test.go#L21
cannot use &mockStore{…} (value of type *mockStore) as "github.com/go-packagist/go-kratos-components/contract/cache".Store value in return statement: *mockStore does not implement "github.com/go-packagist/go-kratos-components/contract/cache".Store (wrong type for method Flush)
go test (1.20.x, ubuntu-latest): cache/respository_test.go#L79
cannot use (*mockStore)(nil) (value of type *mockStore) as "github.com/go-packagist/go-kratos-components/contract/cache".Store value in variable declaration: *mockStore does not implement "github.com/go-packagist/go-kratos-components/contract/cache".Store (wrong type for method Flush)
go test (1.20.x, ubuntu-latest): cache/repository.go#L16
cannot use &Repository{…} (value of type *Repository) as "github.com/go-packagist/go-kratos-components/contract/cache".Repository value in return statement: *Repository does not implement "github.com/go-packagist/go-kratos-components/contract/cache".Repository (wrong type for method Delete)
go test (1.20.x, ubuntu-latest): cache/repository.go#L30
too many return values
go test (1.20.x, ubuntu-latest): cache/repository.go#L34
too many return values
go test (1.20.x, ubuntu-latest): cache/manager_test.go#L23
multiple-value m.Connect().Put(ctx, "test", "test", time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.20.x, ubuntu-latest): cache/manager_test.go#L35
multiple-value m.Connect("test2").Put(ctx, "test", "test", time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.20.x, ubuntu-latest): cache/redis/store_test.go#L41
multiple-value c.Put(ctx, "int", 1, time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.20.x, ubuntu-latest): cache/redis/store_test.go#L42
multiple-value c.Put(ctx, "int32", int32(1), time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.18.x, ubuntu-latest)
The job was canceled because "_1_20_x_ubuntu-latest" failed.
go test (1.18.x, ubuntu-latest): cache/respository_test.go#L21
cannot use &mockStore{…} (value of type *mockStore) as type "github.com/go-packagist/go-kratos-components/contract/cache".Store in return statement:
go test (1.18.x, ubuntu-latest): cache/respository_test.go#L79
cannot use (*mockStore)(nil) (value of type *mockStore) as type "github.com/go-packagist/go-kratos-components/contract/cache".Store in variable declaration:
go test (1.18.x, ubuntu-latest): cache/manager_test.go#L23
multiple-value m.Connect().Put(ctx, "test", "test", time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.18.x, ubuntu-latest): cache/manager_test.go#L35
multiple-value m.Connect("test2").Put(ctx, "test", "test", time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.18.x, ubuntu-latest): cache/redis/store_test.go#L41
multiple-value c.Put(ctx, "int", 1, time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.18.x, ubuntu-latest): cache/redis/store_test.go#L42
multiple-value c.Put(ctx, "int32", int32(1), time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.18.x, ubuntu-latest): cache/redis/store_test.go#L43
multiple-value c.Put(ctx, "string", "test", time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.18.x, ubuntu-latest): cache/redis/store_test.go#L44
multiple-value c.Put(ctx, "bool", true, time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.18.x, ubuntu-latest): cache/redis/store_test.go#L46
multiple-value c.Put(ctx, "time", time.Now(), time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.19.x, ubuntu-latest)
The job was canceled because "_1_20_x_ubuntu-latest" failed.
go test (1.19.x, ubuntu-latest): cache/respository_test.go#L21
cannot use &mockStore{…} (value of type *mockStore) as type "github.com/go-packagist/go-kratos-components/contract/cache".Store in return statement:
go test (1.19.x, ubuntu-latest): cache/respository_test.go#L79
cannot use (*mockStore)(nil) (value of type *mockStore) as type "github.com/go-packagist/go-kratos-components/contract/cache".Store in variable declaration:
go test (1.19.x, ubuntu-latest): cache/manager_test.go#L23
multiple-value m.Connect().Put(ctx, "test", "test", time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.19.x, ubuntu-latest): cache/manager_test.go#L35
multiple-value m.Connect("test2").Put(ctx, "test", "test", time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.19.x, ubuntu-latest): cache/redis/store_test.go#L41
multiple-value c.Put(ctx, "int", 1, time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.19.x, ubuntu-latest): cache/redis/store_test.go#L42
multiple-value c.Put(ctx, "int32", int32(1), time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.19.x, ubuntu-latest): cache/redis/store_test.go#L43
multiple-value c.Put(ctx, "string", "test", time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.19.x, ubuntu-latest): cache/redis/store_test.go#L44
multiple-value c.Put(ctx, "bool", true, time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.19.x, ubuntu-latest): cache/redis/store_test.go#L46
multiple-value c.Put(ctx, "time", time.Now(), time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.21.x, ubuntu-latest)
The job was canceled because "_1_20_x_ubuntu-latest" failed.
go test (1.21.x, ubuntu-latest): cache/respository_test.go#L21
cannot use &mockStore{…} (value of type *mockStore) as "github.com/go-packagist/go-kratos-components/contract/cache".Store value in return statement: *mockStore does not implement "github.com/go-packagist/go-kratos-components/contract/cache".Store (wrong type for method Flush)
go test (1.21.x, ubuntu-latest): cache/respository_test.go#L79
cannot use (*mockStore)(nil) (value of type *mockStore) as "github.com/go-packagist/go-kratos-components/contract/cache".Store value in variable declaration: *mockStore does not implement "github.com/go-packagist/go-kratos-components/contract/cache".Store (wrong type for method Flush)
go test (1.21.x, ubuntu-latest): cache/repository.go#L16
cannot use &Repository{…} (value of type *Repository) as "github.com/go-packagist/go-kratos-components/contract/cache".Repository value in return statement: *Repository does not implement "github.com/go-packagist/go-kratos-components/contract/cache".Repository (wrong type for method Delete)
go test (1.21.x, ubuntu-latest): cache/repository.go#L30
too many return values
go test (1.21.x, ubuntu-latest): cache/repository.go#L34
too many return values
go test (1.21.x, ubuntu-latest): cache/manager_test.go#L23
multiple-value m.Connect().Put(ctx, "test", "test", time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.21.x, ubuntu-latest): cache/manager_test.go#L35
multiple-value m.Connect("test2").Put(ctx, "test", "test", time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.21.x, ubuntu-latest): cache/redis/store_test.go#L41
multiple-value c.Put(ctx, "int", 1, time.Second * 10) (value of type (bool, error)) in single-value context
go test (1.21.x, ubuntu-latest): cache/redis/store_test.go#L42
multiple-value c.Put(ctx, "int32", int32(1), time.Second * 10) (value of type (bool, error)) in single-value context