From 5b5bc6bb78bba67f6e863ae586a54f54a6dd3b19 Mon Sep 17 00:00:00 2001 From: Wen Bo Li <50884368+wenovus@users.noreply.github.com> Date: Fri, 13 Sep 2019 11:25:36 -0700 Subject: [PATCH] fix old typo (#312) * fix old typo * fix another old typo --- ygen/codegen.go | 2 +- ygen/genstate_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ygen/codegen.go b/ygen/codegen.go index ad51e5b14..9440ba09d 100644 --- a/ygen/codegen.go +++ b/ygen/codegen.go @@ -60,7 +60,7 @@ type GeneratorConfig struct { // string is not specified, the location of the library is utilised. Caller string // YANGParseOptions provides the options that should be handed to the - // //third_party/golang/goyang/pkg/yang library. These specify how the + // github.com/openconfig/goyang/pkg/yang library. These specify how the // input YANG files should be parsed. YANGParseOptions yang.Options // GenerateFakeRoot specifies whether an entity that represents the diff --git a/ygen/genstate_test.go b/ygen/genstate_test.go index 94871a6d6..2706c5269 100644 --- a/ygen/genstate_test.go +++ b/ygen/genstate_test.go @@ -2270,7 +2270,7 @@ func TestBuildDirectoryDefinitions(t *testing.T) { t.Errorf("%s: buildDirectoryDefinitions(CompressOCPaths: %v, Language: %s, excludeState: %v): %s did not have matching path, got: %v, want: %v", tt.name, c.compress, langName(c.lang), c.excludeState, gotName, gotDir.Path, wantDir.Path) } - if wantDir.Name != wantDir.Name { + if gotDir.Name != wantDir.Name { t.Errorf("%s buildDirectoryDefinitions(CompressOCPaths: %v, Language: %s, excludeState: %v): %s did not have matching name, got: %v, want: %v", tt.name, c.compress, langName(c.lang), c.excludeState, gotDir.Path, gotDir.Name, wantDir.Name) } }