Skip to content

Commit

Permalink
add one more testcase to netrc parser
Browse files Browse the repository at this point in the history
  • Loading branch information
adolsalamanca committed Mar 13, 2022
1 parent e5bfa49 commit f2698e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/envrc/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ func Test_parseNetrc(t *testing.T) {
},
},
},
{
name: "does not parse incomplete envrc",
args: args{
data: "machine test.sample.org\npassword mypassword",
},
want: nil,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit f2698e3

Please sign in to comment.