We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23cc0c3 commit 6978869Copy full SHA for 6978869
cmd/root_test.go
@@ -88,6 +88,27 @@ func Test_validate(t *testing.T) {
88
}
89
},
90
91
+ {
92
+ name: "Successful validation output file",
93
+ args: args{
94
+ config: formatter.Config{
95
+ OutputFormat: formatter.ExcelOutput,
96
+ InputFileConfig: formatter.InputFileConfig{
97
+ Path: path.Join(os.TempDir(), "formatter_cmd_valid_output"),
98
+ },
99
+ OutputFile: formatter.OutputFile("output.xlsx"),
100
101
102
+ wantErr: false,
103
+ before: func(t *testing.T) {
104
+ path := path.Join(os.TempDir(), "formatter_cmd_valid_output")
105
+ _, err := os.Create(path)
106
+ if err != nil {
107
+ t.Errorf("could not create input file: %s", path)
108
+ }
109
110
+ after: func(t *testing.T) {},
111
112
{
113
name: "Successful validation template",
114
args: args{
0 commit comments