File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
1111)
1212
1313func Test_parseConfig (t * testing.T ) {
14- defer StubConfig (`---
14+ defer stubConfig (`---
1515hosts:
1616 github.com:
1717 user: monalisa
2828}
2929
3030func Test_parseConfig_multipleHosts (t * testing.T ) {
31- defer StubConfig (`---
31+ defer stubConfig (`---
3232hosts:
3333 example.com:
3434 user: wronguser
4848}
4949
5050func Test_parseConfig_hostsFile (t * testing.T ) {
51- defer StubConfig ("" , `---
51+ defer stubConfig ("" , `---
5252github.com:
5353 user: monalisa
5454 oauth_token: OTOKEN
@@ -64,7 +64,7 @@ github.com:
6464}
6565
6666func Test_parseConfig_hostFallback (t * testing.T ) {
67- defer StubConfig (`---
67+ defer stubConfig (`---
6868git_protocol: ssh
6969` , `---
7070github.com:
@@ -89,7 +89,7 @@ example.com:
8989}
9090
9191func Test_parseConfig_migrateConfig (t * testing.T ) {
92- defer StubConfig (`---
92+ defer stubConfig (`---
9393github.com:
9494 - user: keiyuri
9595 oauth_token: 123456
@@ -134,7 +134,7 @@ func Test_parseConfigFile(t *testing.T) {
134134
135135 for _ , tt := range tests {
136136 t .Run (fmt .Sprintf ("contents: %q" , tt .contents ), func (t * testing.T ) {
137- defer StubConfig (tt .contents , "" )()
137+ defer stubConfig (tt .contents , "" )()
138138 _ , yamlRoot , err := parseConfigFile ("config.yml" )
139139 if tt .wantsErr != (err != nil ) {
140140 t .Fatalf ("got error: %v" , err )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ func StubWriteConfig(wc io.Writer, wh io.Writer) func() {
3737 }
3838}
3939
40- func StubConfig (main , hosts string ) func () {
40+ func stubConfig (main , hosts string ) func () {
4141 orig := ReadConfigFile
4242 ReadConfigFile = func (fn string ) ([]byte , error ) {
4343 switch path .Base (fn ) {
You can’t perform that action at this time.
0 commit comments