Debian Codegraph @

breakup_test.go

raw symbols SCIP
1 // Copyright 2013 Google Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package getoptscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/
6
7 import (
8 "testingscip-go gomod github.com/golang/go/src go1.13 testing/"
9 )
10
11 var breakupTestsscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/breakupTests. = []struct {
12 inscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/breakupTests:in. string
13 maxscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/breakupTests:max. int
14 outscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/breakupTests:out. []string
15 }{
16 {"", 8, []string{}},
17 {"a fox", 8, []string{"a fox"}},
18 {"a foxhound is sly", 2, []string{"a", "foxhound", "is", "sly"}},
19 {"a foxhound is sly", 5, []string{"a", "foxhound", "is", "sly"}},
20 {"a foxhound is sly", 6, []string{"a", "foxhound", "is sly"}},
21 {"a foxhound is sly", 7, []string{"a", "foxhound", "is sly"}},
22 {"a foxhound is sly", 8, []string{"a", "foxhound", "is sly"}},
23 {"a foxhound is sly", 9, []string{"a", "foxhound", "is sly"}},
24 {"a foxhound is sly", 10, []string{"a foxhound", "is sly"}},
25 }
26
27 func TestBreakupscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/TestBreakup().(t *testingscip-go gomod github.com/golang/go/src go1.13 testing/.Tscip-go gomod github.com/golang/go/src go1.13 testing/T#) {
28 for x, tt := range breakupTestsscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/breakupTests. {
29 out := breakupscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/breakup().(tt.inscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/breakupTests:in., tt.maxscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/breakupTests:max.)
30 if badSlicescip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/badSlice().(out, tt.outscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/breakupTests:out.) {
31 t.Errorfscip-go gomod github.com/golang/go/src go1.13 testing/common#Errorf().("#%d: got %v, want %v", x, out, tt.outscip-go gomod github.com/pborman/getopt . `github.com/pborman/getopt`/breakupTests:out.)
32 }
33 }
34 }