File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches : [ main ]
66 pull_request :
7- branches : [ main ]
87
98jobs :
10-
11- build :
12- name : Build
13- runs-on : ubuntu-latest
14- strategy :
15- fail-fast : false
16-
17- steps :
18- - name : Set up Go 1.x
19- uses : actions/setup-go@v2
20- # Use default go version so that we don't have to update it every time a new one comes out.
21- id : go
22-
23- - name : Check out code into the Go module directory
24- uses : actions/checkout@v2
25-
26- - name : Get dependencies
27- run : |
28- go get -v -t -d ./...
29-
30- - name : Build
31- run : go build -v ./...
32-
33- - name : Test
34- run : go test -v ./...
9+ go :
10+ uses : openconfig/common-ci/.github/workflows/basic_go.yml@c2294c3c86c90e75e58c24a40d6f7f3364bbae9d
Original file line number Diff line number Diff line change 11module github.com/openconfig/pattern-regex-tests
22
3- go 1.15
3+ go 1.19
44
55require (
66 github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
77 github.com/google/go-cmp v0.5.0
8- github.com/openconfig/gnmi v0.0.0-20201217212801-57b8e7af2d36 // indirect
98 github.com/openconfig/goyang v0.2.4
109 github.com/openconfig/ygot v0.9.0
1110)
11+
12+ require (
13+ github.com/golang/protobuf v1.4.3 // indirect
14+ github.com/kylelemons/godebug v1.1.0 // indirect
15+ github.com/openconfig/gnmi v0.0.0-20201217212801-57b8e7af2d36 // indirect
16+ golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 // indirect
17+ golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e // indirect
18+ golang.org/x/text v0.3.4 // indirect
19+ google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d // indirect
20+ google.golang.org/grpc v1.34.0 // indirect
21+ google.golang.org/protobuf v1.25.0 // indirect
22+ )
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ github.com/openconfig/goyang v0.2.4/go.mod h1:vX61x01Q46AzbZUzG617vWqh/cB+aisc+R
4949github.com/openconfig/ygot v0.6.0 /go.mod h1:o30svNf7O0xK+R35tlx95odkDmZWS9JyWWQSmIhqwAs =
5050github.com/openconfig/ygot v0.9.0 h1:as0Hi27+tii4dnT1Namxrba+UVgMTn4eElQ08a6DtF4 =
5151github.com/openconfig/ygot v0.9.0 /go.mod h1:oCQNdXnv7dWc8scTDgoFkauv1wwplJn5HspHcjlxSAQ =
52- github.com/pborman/getopt v0.0.0-20190409184431-ee0cd42419d3 h1:YtFkrqsMEj7YqpIhRteVxJxCeC3jJBieuLr0d4C4rSA =
5352github.com/pborman/getopt v0.0.0-20190409184431-ee0cd42419d3 /go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o =
5453github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
5554github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
Original file line number Diff line number Diff line change 3030 failCaseExt = regexp .MustCompile (`\w+:pattern-test-fail` )
3131)
3232
33- // YANGLeaf is a structure used to describe a particular leaf of YANG schema.
34- type YANGLeaf struct {
35- module string
36- name string
37- }
38-
39- // RegexpTest specifies a test case for a particular regular expression check.
40- type RegexpTest struct {
41- inData string
42- wantMatch bool
43- }
44-
4533// CheckRegexps tests mock input data against a set of leaves that have pattern
4634// test cases specified for them. It ensures that the regexp compiles as a
4735// POSIX regular expression according to the OpenConfig style guide.
You can’t perform that action at this time.
0 commit comments