Permalink
Please sign in to comment.
Browse files
Promote config.Config to an interface
Sooo, we can mock it during command testing. When testing is hard, mock it so you look good in front of others and don't care about all the shit and potential bugs it can slip through. But hey, tests!
- Loading branch information...
Showing
with
36 additions
and 23 deletions.
- +1 −1 cli/command.go
- +3 −3 cli/command_test.go
- +1 −1 cmd/cd.go
- +1 −1 cmd/chdir.go
- +1 −1 cmd/clean.go
- +1 −1 cmd/help.go
- +1 −1 cmd/hint.go
- +1 −1 cmd/pin.go
- +1 −1 cmd/shell.go
- +1 −1 cmd/top.go
- +1 −1 cmd/version.go
- +17 −4 config/config.go
- +2 −2 config/entries.go
- +2 −2 config/pin.go
- +2 −2 config/search.go
0 comments on commit
a71a832