-
Notifications
You must be signed in to change notification settings - Fork 0
Bump github.com/stretchr/testify from 1.8.1 to 1.8.3 #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Bump github.com/stretchr/testify from 1.8.1 to 1.8.3 #62
Conversation
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.1 to 1.8.3. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](stretchr/testify@v1.8.1...v1.8.3) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Gofmt Failure
handlers/handlers_test.go
)
/*
-func TestNewHandler(t *testing.T) {
- tests := []struct {
- name string
- want *itemHandler
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if got := NewItemHandler(); !reflect.DeepEqual(got, tt.want) {
- t.Errorf("NewItemHandler() = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func TestHandler_CreateItem(t *testing.T) {
- type fields struct {
- s *services.ItemService
- }
- type args struct {
- c *gin.Context
- }
- tests := []struct {
- name string
- fields fields
- args args
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- p := &itemHandler{
- s: tt.fields.s,
- }
- })
- }
-}
-
-func TestHandler_DeleteItem(t *testing.T) {
- type fields struct {
- s *services.ItemService
- }
- type args struct {
- c *gin.Context
- }
- tests := []struct {
- name string
- fields fields
- args args
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- p := &itemHandler{
- s: tt.fields.s,
- }
- })
- }
-}
-
-func TestHandler_FindItem(t *testing.T) {
- type fields struct {
- s *services.ItemService
- }
- type args struct {
- c *gin.Context
- }
- tests := []struct {
- name string
- fields fields
- args args
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- p := &itemHandler{
- s: tt.fields.s,
- }
- })
- }
-}
-
-func TestHandler_GetItemService(t *testing.T) {
- type fields struct {
- s *services.ItemService
- }
- tests := []struct {
- name string
- fields fields
- want services.ItemService
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- p := &itemHandler{
- s: tt.fields.s,
- }
- if got := p.GetItemService(); !reflect.DeepEqual(got, tt.want) {
- t.Errorf("GetItemService() = %v, want %v", got, tt.want)
- }
- })
- }
-}
+ func TestNewHandler(t *testing.T) {
+ tests := []struct {
+ name string
+ want *itemHandler
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ if got := NewItemHandler(); !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("NewItemHandler() = %v, want %v", got, tt.want)
+ }
+ })
+ }
+ }
+
+ func TestHandler_CreateItem(t *testing.T) {
+ type fields struct {
+ s *services.ItemService
+ }
+ type args struct {
+ c *gin.Context
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ p := &itemHandler{
+ s: tt.fields.s,
+ }
+ })
+ }
+ }
+
+ func TestHandler_DeleteItem(t *testing.T) {
+ type fields struct {
+ s *services.ItemService
+ }
+ type args struct {
+ c *gin.Context
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ p := &itemHandler{
+ s: tt.fields.s,
+ }
+ })
+ }
+ }
+
+ func TestHandler_FindItem(t *testing.T) {
+ type fields struct {
+ s *services.ItemService
+ }
+ type args struct {
+ c *gin.Context
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ p := &itemHandler{
+ s: tt.fields.s,
+ }
+ })
+ }
+ }
+
+ func TestHandler_GetItemService(t *testing.T) {
+ type fields struct {
+ s *services.ItemService
+ }
+ tests := []struct {
+ name string
+ fields fields
+ want services.ItemService
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ p := &itemHandler{
+ s: tt.fields.s,
+ }
+ if got := p.GetItemService(); !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("GetItemService() = %v, want %v", got, tt.want)
+ }
+ })
+ }
+ }
*/
func TestHandler_ListItems(t *testing.T) {
tests := []struct {services/services_test.go
)
/*
-func TestNewItemService(t *testing.T) {
- tests := []struct {
- name string
- want *ItemService
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if got := NewItemService(); !reflect.DeepEqual(got, tt.want) {
- t.Errorf("NewItemService() = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func Test_itemService_CreateItem(t *testing.T) {
- type fields struct {
- r *repository.ItemRepository
- }
- type args struct {
- input models.CreateItemInput
- }
- tests := []struct {
- name string
- fields fields
- args args
- want models.Item
- wantErr bool
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- s := &itemService{
- r: tt.fields.r,
- }
- got, err := s.CreateItem(tt.args.input)
- if (err != nil) != tt.wantErr {
- t.Errorf("CreateItem() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("CreateItem() got = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func Test_itemService_DeleteItem(t *testing.T) {
- type fields struct {
- r *repository.ItemRepository
- }
- type args struct {
- id string
- }
- tests := []struct {
- name string
- fields fields
- args args
- wantErr bool
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- s := &itemService{
- r: tt.fields.r,
- }
- if err := s.DeleteItem(tt.args.id); (err != nil) != tt.wantErr {
- t.Errorf("DeleteItem() error = %v, wantErr %v", err, tt.wantErr)
- }
- })
- }
-}
-
-func Test_itemService_FindItem(t *testing.T) {
- type fields struct {
- r *repository.ItemRepository
- }
- type args struct {
- id string
- }
- tests := []struct {
- name string
- fields fields
- args args
- want models.Item
- want1 bool
- wantErr bool
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- s := &itemService{
- r: tt.fields.r,
- }
- got, got1, err := s.FindItem(tt.args.id)
- if (err != nil) != tt.wantErr {
- t.Errorf("FindItem() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("FindItem() got = %v, want %v", got, tt.want)
- }
- if got1 != tt.want1 {
- t.Errorf("FindItem() got1 = %v, want %v", got1, tt.want1)
- }
- })
- }
-}
-
-func Test_itemService_GetItemRepository(t *testing.T) {
- type fields struct {
- r *repository.ItemRepository
- }
- tests := []struct {
- name string
- fields fields
- want repository.ItemRepository
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- s := &itemService{
- r: tt.fields.r,
- }
- if got := s.GetItemRepository(); !reflect.DeepEqual(got, tt.want) {
- t.Errorf("GetItemRepository() = %v, want %v", got, tt.want)
- }
- })
- }
-}
+ func TestNewItemService(t *testing.T) {
+ tests := []struct {
+ name string
+ want *ItemService
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ if got := NewItemService(); !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("NewItemService() = %v, want %v", got, tt.want)
+ }
+ })
+ }
+ }
+
+ func Test_itemService_CreateItem(t *testing.T) {
+ type fields struct {
+ r *repository.ItemRepository
+ }
+ type args struct {
+ input models.CreateItemInput
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ want models.Item
+ wantErr bool
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ s := &itemService{
+ r: tt.fields.r,
+ }
+ got, err := s.CreateItem(tt.args.input)
+ if (err != nil) != tt.wantErr {
+ t.Errorf("CreateItem() error = %v, wantErr %v", err, tt.wantErr)
+ return
+ }
+ if !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("CreateItem() got = %v, want %v", got, tt.want)
+ }
+ })
+ }
+ }
+
+ func Test_itemService_DeleteItem(t *testing.T) {
+ type fields struct {
+ r *repository.ItemRepository
+ }
+ type args struct {
+ id string
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ wantErr bool
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ s := &itemService{
+ r: tt.fields.r,
+ }
+ if err := s.DeleteItem(tt.args.id); (err != nil) != tt.wantErr {
+ t.Errorf("DeleteItem() error = %v, wantErr %v", err, tt.wantErr)
+ }
+ })
+ }
+ }
+
+ func Test_itemService_FindItem(t *testing.T) {
+ type fields struct {
+ r *repository.ItemRepository
+ }
+ type args struct {
+ id string
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ want models.Item
+ want1 bool
+ wantErr bool
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ s := &itemService{
+ r: tt.fields.r,
+ }
+ got, got1, err := s.FindItem(tt.args.id)
+ if (err != nil) != tt.wantErr {
+ t.Errorf("FindItem() error = %v, wantErr %v", err, tt.wantErr)
+ return
+ }
+ if !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("FindItem() got = %v, want %v", got, tt.want)
+ }
+ if got1 != tt.want1 {
+ t.Errorf("FindItem() got1 = %v, want %v", got1, tt.want1)
+ }
+ })
+ }
+ }
+
+ func Test_itemService_GetItemRepository(t *testing.T) {
+ type fields struct {
+ r *repository.ItemRepository
+ }
+ tests := []struct {
+ name string
+ fields fields
+ want repository.ItemRepository
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ s := &itemService{
+ r: tt.fields.r,
+ }
+ if got := s.GetItemRepository(); !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("GetItemRepository() = %v, want %v", got, tt.want)
+ }
+ })
+ }
+ }
*/
func Test_itemService_ListItems(t *testing.T) {
sold := trueThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Goimports Failure
handlers/handlers_test.go
)
/*
-func TestNewHandler(t *testing.T) {
- tests := []struct {
- name string
- want *itemHandler
- }{
- // TODO: Add test cases.
+ func TestNewHandler(t *testing.T) {
+ tests := []struct {
+ name string
+ want *itemHandler
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ if got := NewItemHandler(); !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("NewItemHandler() = %v, want %v", got, tt.want)
+ }
+ })
+ }
}
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if got := NewItemHandler(); !reflect.DeepEqual(got, tt.want) {
- t.Errorf("NewItemHandler() = %v, want %v", got, tt.want)
- }
- })
- }
-}
-func TestHandler_CreateItem(t *testing.T) {
- type fields struct {
- s *services.ItemService
+ func TestHandler_CreateItem(t *testing.T) {
+ type fields struct {
+ s *services.ItemService
+ }
+ type args struct {
+ c *gin.Context
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ p := &itemHandler{
+ s: tt.fields.s,
+ }
+ })
+ }
}
- type args struct {
- c *gin.Context
- }
- tests := []struct {
- name string
- fields fields
- args args
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- p := &itemHandler{
- s: tt.fields.s,
- }
- })
- }
-}
-func TestHandler_DeleteItem(t *testing.T) {
- type fields struct {
- s *services.ItemService
+ func TestHandler_DeleteItem(t *testing.T) {
+ type fields struct {
+ s *services.ItemService
+ }
+ type args struct {
+ c *gin.Context
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ p := &itemHandler{
+ s: tt.fields.s,
+ }
+ })
+ }
}
- type args struct {
- c *gin.Context
- }
- tests := []struct {
- name string
- fields fields
- args args
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- p := &itemHandler{
- s: tt.fields.s,
- }
- })
- }
-}
-func TestHandler_FindItem(t *testing.T) {
- type fields struct {
- s *services.ItemService
+ func TestHandler_FindItem(t *testing.T) {
+ type fields struct {
+ s *services.ItemService
+ }
+ type args struct {
+ c *gin.Context
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ p := &itemHandler{
+ s: tt.fields.s,
+ }
+ })
+ }
}
- type args struct {
- c *gin.Context
- }
- tests := []struct {
- name string
- fields fields
- args args
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- p := &itemHandler{
- s: tt.fields.s,
- }
- })
- }
-}
-func TestHandler_GetItemService(t *testing.T) {
- type fields struct {
- s *services.ItemService
+ func TestHandler_GetItemService(t *testing.T) {
+ type fields struct {
+ s *services.ItemService
+ }
+ tests := []struct {
+ name string
+ fields fields
+ want services.ItemService
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ p := &itemHandler{
+ s: tt.fields.s,
+ }
+ if got := p.GetItemService(); !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("GetItemService() = %v, want %v", got, tt.want)
+ }
+ })
+ }
}
- tests := []struct {
- name string
- fields fields
- want services.ItemService
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- p := &itemHandler{
- s: tt.fields.s,
- }
- if got := p.GetItemService(); !reflect.DeepEqual(got, tt.want) {
- t.Errorf("GetItemService() = %v, want %v", got, tt.want)
- }
- })
- }
-}
*/
func TestHandler_ListItems(t *testing.T) {
tests := []struct {services/services_test.go
)
/*
-func TestNewItemService(t *testing.T) {
- tests := []struct {
- name string
- want *ItemService
- }{
- // TODO: Add test cases.
+ func TestNewItemService(t *testing.T) {
+ tests := []struct {
+ name string
+ want *ItemService
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ if got := NewItemService(); !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("NewItemService() = %v, want %v", got, tt.want)
+ }
+ })
+ }
}
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if got := NewItemService(); !reflect.DeepEqual(got, tt.want) {
- t.Errorf("NewItemService() = %v, want %v", got, tt.want)
- }
- })
- }
-}
-func Test_itemService_CreateItem(t *testing.T) {
- type fields struct {
- r *repository.ItemRepository
+ func Test_itemService_CreateItem(t *testing.T) {
+ type fields struct {
+ r *repository.ItemRepository
+ }
+ type args struct {
+ input models.CreateItemInput
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ want models.Item
+ wantErr bool
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ s := &itemService{
+ r: tt.fields.r,
+ }
+ got, err := s.CreateItem(tt.args.input)
+ if (err != nil) != tt.wantErr {
+ t.Errorf("CreateItem() error = %v, wantErr %v", err, tt.wantErr)
+ return
+ }
+ if !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("CreateItem() got = %v, want %v", got, tt.want)
+ }
+ })
+ }
}
- type args struct {
- input models.CreateItemInput
- }
- tests := []struct {
- name string
- fields fields
- args args
- want models.Item
- wantErr bool
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- s := &itemService{
- r: tt.fields.r,
- }
- got, err := s.CreateItem(tt.args.input)
- if (err != nil) != tt.wantErr {
- t.Errorf("CreateItem() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("CreateItem() got = %v, want %v", got, tt.want)
- }
- })
- }
-}
-func Test_itemService_DeleteItem(t *testing.T) {
- type fields struct {
- r *repository.ItemRepository
+ func Test_itemService_DeleteItem(t *testing.T) {
+ type fields struct {
+ r *repository.ItemRepository
+ }
+ type args struct {
+ id string
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ wantErr bool
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ s := &itemService{
+ r: tt.fields.r,
+ }
+ if err := s.DeleteItem(tt.args.id); (err != nil) != tt.wantErr {
+ t.Errorf("DeleteItem() error = %v, wantErr %v", err, tt.wantErr)
+ }
+ })
+ }
}
- type args struct {
- id string
- }
- tests := []struct {
- name string
- fields fields
- args args
- wantErr bool
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- s := &itemService{
- r: tt.fields.r,
- }
- if err := s.DeleteItem(tt.args.id); (err != nil) != tt.wantErr {
- t.Errorf("DeleteItem() error = %v, wantErr %v", err, tt.wantErr)
- }
- })
- }
-}
-func Test_itemService_FindItem(t *testing.T) {
- type fields struct {
- r *repository.ItemRepository
+ func Test_itemService_FindItem(t *testing.T) {
+ type fields struct {
+ r *repository.ItemRepository
+ }
+ type args struct {
+ id string
+ }
+ tests := []struct {
+ name string
+ fields fields
+ args args
+ want models.Item
+ want1 bool
+ wantErr bool
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ s := &itemService{
+ r: tt.fields.r,
+ }
+ got, got1, err := s.FindItem(tt.args.id)
+ if (err != nil) != tt.wantErr {
+ t.Errorf("FindItem() error = %v, wantErr %v", err, tt.wantErr)
+ return
+ }
+ if !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("FindItem() got = %v, want %v", got, tt.want)
+ }
+ if got1 != tt.want1 {
+ t.Errorf("FindItem() got1 = %v, want %v", got1, tt.want1)
+ }
+ })
+ }
}
- type args struct {
- id string
- }
- tests := []struct {
- name string
- fields fields
- args args
- want models.Item
- want1 bool
- wantErr bool
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- s := &itemService{
- r: tt.fields.r,
- }
- got, got1, err := s.FindItem(tt.args.id)
- if (err != nil) != tt.wantErr {
- t.Errorf("FindItem() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("FindItem() got = %v, want %v", got, tt.want)
- }
- if got1 != tt.want1 {
- t.Errorf("FindItem() got1 = %v, want %v", got1, tt.want1)
- }
- })
- }
-}
-func Test_itemService_GetItemRepository(t *testing.T) {
- type fields struct {
- r *repository.ItemRepository
+ func Test_itemService_GetItemRepository(t *testing.T) {
+ type fields struct {
+ r *repository.ItemRepository
+ }
+ tests := []struct {
+ name string
+ fields fields
+ want repository.ItemRepository
+ }{
+ // TODO: Add test cases.
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ s := &itemService{
+ r: tt.fields.r,
+ }
+ if got := s.GetItemRepository(); !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("GetItemRepository() = %v, want %v", got, tt.want)
+ }
+ })
+ }
}
- tests := []struct {
- name string
- fields fields
- want repository.ItemRepository
- }{
- // TODO: Add test cases.
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- s := &itemService{
- r: tt.fields.r,
- }
- if got := s.GetItemRepository(); !reflect.DeepEqual(got, tt.want) {
- t.Errorf("GetItemRepository() = %v, want %v", got, tt.want)
- }
- })
- }
-}
*/
func Test_itemService_ListItems(t *testing.T) {
sold := trueThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Golint Success!
Quality Gate StatusPASSED: actual coverage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Errcheck Success!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Govet Failure
routers/routers_test.go:9:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Gosec Failure
Gosec : dev
Files : 10
Lines : 547
Nosec : 0
Issues : 0
Show Detail
Results:
Summary:
Gosec : dev
Files : 10
Lines : 547
Nosec : 0
Issues : 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Shadow Success!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Staticcheck Failure
routers/routers_test.go:9:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)
Bumps github.com/stretchr/testify from 1.8.1 to 1.8.3.
Commits
4c93d8fEqualExportedValues: Handle nested pointer, slice and map fields (#1379)4b2f4d2add EventuallyWithT assertion (#1264)b3106d7allow testing for functional options (#1023)437071bassert: fix error message formatting for NotContains (#1362)c5fc9d6Compare public elements of struct (#1309)f36bfe3Fix Subset/NotSubset when map is missing keys from the subset (#1261)0ab3ce1FixCallerInfo()source file paths (#1288)2b00d33Fix Call.Unset() panic (issue #1236) (#1250)9acc222fix: fix bug for check unsafe.Pointer isNil (#1319)1333b5dAdd sub-tests to Suite (#1246)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)