|
|
@@ -110,6 +110,14 @@ func Test_VariadicField_NewFromPath_no_tags_in_dir(t *testing.T) {
|
|
|
assert.Equal(t, len(vf.Fields), 0)
|
|
|
}
|
|
|
|
|
|
+func Test_VariadicField_NewFromPath_skip_dotfile(t *testing.T) {
|
|
|
+ vf, err := VariadicField.NewFromPath(VariadicField{Path: "/tags"}, "tests/bugs/test-4")
|
|
|
+ if err != nil {
|
|
|
+ assert.Fail(t, "should not throw error")
|
|
|
+ }
|
|
|
+ assert.Equal(t, len(vf.Fields), 2)
|
|
|
+}
|
|
|
+
|
|
|
func Test_VariadicField_NewFromPath_success(t *testing.T) {
|
|
|
vf, err := VariadicField.NewFromPath(VariadicField{Path: "/tags"}, "tests/bugs/test-1")
|
|
|
if err != nil {
|