@@ -16,20 +16,20 @@ import (
1616
1717func Test_TestCommand_Verbose (t * testing.T ) {
1818 out := captureOutput (func () {
19- TestCommand ("commander.yaml" , AddCommandContext {Verbose : true })
19+ TestCommand ("commander.yaml" , TestCommandContext {Verbose : true })
2020 log .Println ("test test test" )
2121 })
2222
2323 assert .Contains (t , out , "test test test" )
2424}
2525
2626func Test_TestCommand_DefaultFile (t * testing.T ) {
27- err := TestCommand ("" , AddCommandContext {Verbose : true })
27+ err := TestCommand ("" , TestCommandContext {Verbose : true })
2828 assert .Contains (t , err .Error (), "commander.yaml" )
2929}
3030
3131func Test_TestCommand (t * testing.T ) {
32- err := TestCommand ("commander.yaml" , AddCommandContext {})
32+ err := TestCommand ("commander.yaml" , TestCommandContext {})
3333
3434 if runtime .GOOS == "windows" {
3535 assert .Contains (t , err .Error (), "Error open commander.yaml:" )
@@ -39,7 +39,7 @@ func Test_TestCommand(t *testing.T) {
3939}
4040
4141func Test_TestCommand_ShouldUseCustomFile (t * testing.T ) {
42- err := TestCommand ("my-test.yaml" , AddCommandContext {})
42+ err := TestCommand ("my-test.yaml" , TestCommandContext {})
4343
4444 if runtime .GOOS == "windows" {
4545 assert .Contains (t , err .Error (), "Error open my-test.yaml:" )
@@ -49,7 +49,7 @@ func Test_TestCommand_ShouldUseCustomFile(t *testing.T) {
4949}
5050
5151func Test_TestCommand_File_WithDir (t * testing.T ) {
52- err := TestCommand ("../../examples" , AddCommandContext {})
52+ err := TestCommand ("../../examples" , TestCommandContext {})
5353
5454 if runtime .GOOS == "windows" {
5555 assert .Contains (t , err .Error (), "is a directory" )
@@ -59,7 +59,7 @@ func Test_TestCommand_File_WithDir(t *testing.T) {
5959}
6060
6161func Test_TestCommand_Dir (t * testing.T ) {
62- err := TestCommand ("../../examples" , AddCommandContext {Dir : true })
62+ err := TestCommand ("../../examples" , TestCommandContext {Dir : true })
6363
6464 if runtime .GOOS == "windows" {
6565 assert .Contains (t , err .Error (), "Test suite failed, use --verbose for more detailed output" )
0 commit comments