* chore: setup mini.test * chore(ci): setup new test runner, install plugin deps * chore(ci): test only on stable and nightly releases * test: iferr * test: struct_tags * test: impl * test: gotests
24 lines
383 B
Go
24 lines
383 B
Go
package fortest
|
|
|
|
import "testing"
|
|
|
|
func TestAdd(t *testing.T) {
|
|
type args struct {
|
|
x int
|
|
y int
|
|
}
|
|
tests := []struct {
|
|
name string
|
|
args args
|
|
want int
|
|
}{
|
|
// TODO: Add test cases.
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
if got := Add(tt.args.x, tt.args.y); got != tt.want {
|
|
t.Errorf("Add() = %v, want %v", got, tt.want)
|
|
}
|
|
})
|
|
}
|
|
}
|