all repos

gopher.nvim @ 52cb8fa60046371f4ce453e36d6604d87a8e7ae6

Minimalistic plugin for Go development

gopher.nvim/spec/fixtures/tests/method_output.go(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package fortest

import "testing"

func TestForTest_Add(t *testing.T) {
	type args struct {
		x int
		y int
	}
	tests := []struct {
		name string
		tr   *ForTest
		args args
		want int
	}{
		// TODO: Add test cases.
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			tr := &ForTest{}
			if got := tr.Add(tt.args.x, tt.args.y); got != tt.want {
				t.Errorf("ForTest.Add() = %v, want %v", got, tt.want)
			}
		})
	}
}