@@ -22,10 +22,10 @@ func TestRecordInvalidFile(t *testing.T) {
2222 repo .Seed ()
2323 os .Chdir (repo .Workdir ())
2424
25- (InitCmd {Ui : new (cli.MockUi )}).Run ([]string {})
25+ (InitCmd {UI : new (cli.MockUi )}).Run ([]string {})
2626
2727 ui := new (cli.MockUi )
28- c := RecordCmd {Ui : ui }
28+ c := RecordCmd {UI : ui }
2929
3030 args := []string {"nofile.txt" }
3131 rc := c .Run (args )
@@ -41,10 +41,10 @@ func TestRecordNoFile(t *testing.T) {
4141 repo .Seed ()
4242 os .Chdir (repo .Workdir ())
4343
44- (InitCmd {Ui : new (cli.MockUi )}).Run ([]string {})
44+ (InitCmd {UI : new (cli.MockUi )}).Run ([]string {})
4545
4646 ui := new (cli.MockUi )
47- c := RecordCmd {Ui : ui }
47+ c := RecordCmd {UI : ui }
4848
4949 args := []string {"" }
5050 rc := c .Run (args )
@@ -61,10 +61,10 @@ func TestRecordFile(t *testing.T) {
6161 workdir := repo .Workdir ()
6262 os .Chdir (workdir )
6363
64- (InitCmd {Ui : new (cli.MockUi )}).Run ([]string {})
64+ (InitCmd {UI : new (cli.MockUi )}).Run ([]string {})
6565
6666 ui := new (cli.MockUi )
67- c := RecordCmd {Ui : ui }
67+ c := RecordCmd {UI : ui }
6868
6969 args := []string {filepath .Join (workdir , "README" )}
7070 rc := c .Run (args )
@@ -95,10 +95,10 @@ func TestRecordFileWithStatus(t *testing.T) {
9595 workdir := repo .Workdir ()
9696 os .Chdir (workdir )
9797
98- (InitCmd {Ui : new (cli.MockUi )}).Run ([]string {})
98+ (InitCmd {UI : new (cli.MockUi )}).Run ([]string {})
9999
100100 ui := new (cli.MockUi )
101- c := RecordCmd {Ui : ui , Out : new (bytes.Buffer )}
101+ c := RecordCmd {UI : ui , Out : new (bytes.Buffer )}
102102
103103 args := []string {"-status" , filepath .Join (workdir , "README" )}
104104 rc := c .Run (args )
@@ -133,10 +133,10 @@ func TestRecordFileWithStatusLongDuration(t *testing.T) {
133133 workdir := repo .Workdir ()
134134 os .Chdir (workdir )
135135
136- (InitCmd {Ui : new (cli.MockUi )}).Run ([]string {})
136+ (InitCmd {UI : new (cli.MockUi )}).Run ([]string {})
137137
138138 ui := new (cli.MockUi )
139- c := RecordCmd {Ui : ui , Out : new (bytes.Buffer )}
139+ c := RecordCmd {UI : ui , Out : new (bytes.Buffer )}
140140
141141 args := []string {"-status" , "-long-duration" , filepath .Join (workdir , "README" )}
142142 rc := c .Run (args )
@@ -171,10 +171,10 @@ func TestRecordTerminal(t *testing.T) {
171171 workdir := repo .Workdir ()
172172 os .Chdir (workdir )
173173
174- (InitCmd {Ui : new (cli.MockUi )}).Run ([]string {})
174+ (InitCmd {UI : new (cli.MockUi )}).Run ([]string {})
175175
176176 ui := new (cli.MockUi )
177- c := RecordCmd {Ui : ui }
177+ c := RecordCmd {UI : ui }
178178
179179 args := []string {"-terminal" }
180180 rc := c .Run (args )
@@ -205,10 +205,10 @@ func TestRecordTerminalWithStatus(t *testing.T) {
205205 workdir := repo .Workdir ()
206206 os .Chdir (workdir )
207207
208- (InitCmd {Ui : new (cli.MockUi )}).Run ([]string {})
208+ (InitCmd {UI : new (cli.MockUi )}).Run ([]string {})
209209
210210 ui := new (cli.MockUi )
211- c := RecordCmd {Ui : ui , Out : new (bytes.Buffer )}
211+ c := RecordCmd {UI : ui , Out : new (bytes.Buffer )}
212212
213213 args := []string {"-terminal" , "-status" }
214214 rc := c .Run (args )
@@ -237,7 +237,7 @@ func TestRecordTerminalWithStatus(t *testing.T) {
237237}
238238func TestRecordInvalidOption (t * testing.T ) {
239239 ui := new (cli.MockUi )
240- c := RecordCmd {Ui : ui }
240+ c := RecordCmd {UI : ui }
241241
242242 args := []string {"-invalid" }
243243 rc := c .Run (args )
0 commit comments