You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everytime i generate test cases ,it gives me same skeleton code like below wihtout adding any actual testing values in the code.
May be I am missing something.
Can somebody please advise.A bit urgent
All test cases have comments " TODO: Add test cases." Does this package not support it ?
Sample test code generated with this package
func TestBit_Value(t *testing.T) {
tests := []struct {
name string
b Bit
want driver.Value
wantErr bool
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := tt.b.Value()
if (err != nil) != tt.wantErr {
t.Errorf("Bit.Value() error = %v, wantErr %v", err, tt.wantErr)
return
}
if !reflect.DeepEqual(got, tt.want) {
t.Errorf("Bit.Value() = %v, want %v", got, tt.want)
}
})
}
}
The text was updated successfully, but these errors were encountered:
this tool generates only a skeleton for the test table, it's your responsibility to provide test cases. How can we define the initial value for b Bit or driver.Value?
Everytime i generate test cases ,it gives me same skeleton code like below wihtout adding any actual testing values in the code.
May be I am missing something.
Can somebody please advise.A bit urgent
All test cases have comments " TODO: Add test cases." Does this package not support it ?
Sample test code generated with this package
func TestBit_Value(t *testing.T) {
tests := []struct {
name string
b Bit
want driver.Value
wantErr bool
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := tt.b.Value()
if (err != nil) != tt.wantErr {
t.Errorf("Bit.Value() error = %v, wantErr %v", err, tt.wantErr)
return
}
if !reflect.DeepEqual(got, tt.want) {
t.Errorf("Bit.Value() = %v, want %v", got, tt.want)
}
})
}
}
The text was updated successfully, but these errors were encountered: