• Home
  • Raw
  • Download

Lines Matching refs:test

136 	for _, test := range tests {
139 command: test.command.cmd,
140 query: test.query.cmd,
141 input: test.input.cmd,
142 path: test.path.cmd,
143 paths: test.paths.cmd,
144 deps: test.deps.cmd,
145 build: test.build.cmd,
149 if test.command.cmd != nil {
150 if res, err := n.Command(nil, test.target); err != nil {
153 if !reflect.DeepEqual(*res, *test.command.res) {
154 t.Errorf("Command result %v; want %v", *res, *test.command.res)
158 if test.query.cmd != nil {
159 if res, err := n.Query(nil, test.target); err != nil {
162 if !reflect.DeepEqual(*res, *test.query.res) {
163 t.Errorf("Query result %v; want %v", *res, *test.query.res)
168 if test.input.cmd != nil {
169 if res, err := n.Input(nil, test.target); err != nil {
172 if !reflect.DeepEqual(*res, *test.input.res) {
173 t.Errorf("Input result %v; want %v", *res, *test.input.res)
178 if test.path.cmd != nil {
179 if res, err := n.Path(nil, test.target, test.dependency); err != nil {
182 if !reflect.DeepEqual(*res, *test.path.res) {
183 t.Errorf("Path result %v; want %v", *res, *test.path.res)
188 if test.paths.cmd != nil {
189 if res, err := n.Paths(nil, test.target, test.dependency); err != nil {
192 if !reflect.DeepEqual(res, test.paths.res) {
193 t.Errorf("Paths result %v; want %v", res, test.paths.res)
198 if test.deps.cmd != nil {
202 if !reflect.DeepEqual(res, test.deps.res) {
203 t.Errorf("Deps result %v; want %v", res, test.deps.res)
208 if test.build.cmd != nil {
209 res := n.Build(nil, test.target)
210 if !reflect.DeepEqual(*res, *test.build.res) {
211 t.Errorf("Build result %+v; want %+v", *res, *test.build.res)