@@ -98,13 +98,14 @@ func TestFlagCompareOneMoreThanTwo(t *testing.T) {
98
98
// upper or eq flag => log should be displayed
99
99
for _ , flag := range tocompare_up {
100
100
if log .FlagCompareOneMoreThanTwo (one , flag ) != false {
101
- t .Fail ( )
101
+ t .Errorf ( "%s was found more than %s" , one , flag )
102
102
}
103
103
}
104
104
// down => log should be discarded
105
105
for _ , flag := range tocompare_down {
106
106
if log .FlagCompareOneMoreThanTwo (one , flag ) != true {
107
- t .Fail ()
107
+ /// atm useless but can be used in the futur
108
+ t .Errorf ("%s was found less or eq than %s" , one , flag )
108
109
}
109
110
}
110
111
})
@@ -115,13 +116,13 @@ func TestFlagCompareOneMoreThanTwo(t *testing.T) {
115
116
// upper or eq flag => log should be displayed
116
117
for _ , flag := range tocompare_up {
117
118
if log .FlagCompareOneMoreThanTwo (one , flag ) != false {
118
- t .Fail ( )
119
+ t .Errorf ( "%s was found more than %s" , one , flag )
119
120
}
120
121
}
121
122
// down => log should be discarded
122
123
for _ , flag := range tocompare_down {
123
124
if log .FlagCompareOneMoreThanTwo (one , flag ) != true {
124
- t .Fail ( )
125
+ t .Errorf ( "%s was found less or eq than %s" , one , flag )
125
126
}
126
127
}
127
128
})
@@ -132,13 +133,13 @@ func TestFlagCompareOneMoreThanTwo(t *testing.T) {
132
133
// upper or eq flag => log should be displayed
133
134
for _ , flag := range tocompare_up {
134
135
if log .FlagCompareOneMoreThanTwo (one , flag ) != false {
135
- t .Fail ( )
136
+ t .Errorf ( "%s was found more than %s" , one , flag )
136
137
}
137
138
}
138
139
// down => log should be discarded
139
140
for _ , flag := range tocompare_down {
140
141
if log .FlagCompareOneMoreThanTwo (one , flag ) != true {
141
- t .Fail ( )
142
+ t .Errorf ( "%s was found less or eq than %s" , one , flag )
142
143
}
143
144
}
144
145
})
@@ -149,13 +150,13 @@ func TestFlagCompareOneMoreThanTwo(t *testing.T) {
149
150
// upper or eq flag => log should be displayed
150
151
for _ , flag := range tocompare_up {
151
152
if log .FlagCompareOneMoreThanTwo (one , flag ) != false {
152
- t .Fail ( )
153
+ t .Errorf ( "%s was found more than %s" , one , flag )
153
154
}
154
155
}
155
156
// down => log should be discarded
156
157
for _ , flag := range tocompare_down {
157
158
if log .FlagCompareOneMoreThanTwo (one , flag ) != true {
158
- t .Fail ( )
159
+ t .Errorf ( "%s was found less or eq than %s" , one , flag )
159
160
}
160
161
}
161
162
})
@@ -166,13 +167,13 @@ func TestFlagCompareOneMoreThanTwo(t *testing.T) {
166
167
// upper or eq flag => log should be displayed
167
168
for _ , flag := range tocompare_up {
168
169
if log .FlagCompareOneMoreThanTwo (one , flag ) != false {
169
- t .Fail ( )
170
+ t .Errorf ( "%s was found more than %s" , one , flag )
170
171
}
171
172
}
172
173
// down => log should be discarded
173
174
for _ , flag := range tocompare_down {
174
175
if log .FlagCompareOneMoreThanTwo (one , flag ) != true {
175
- t .Fail ( )
176
+ t .Errorf ( "%s was found less or eq than %s" , one , flag )
176
177
}
177
178
}
178
179
})
@@ -183,13 +184,13 @@ func TestFlagCompareOneMoreThanTwo(t *testing.T) {
183
184
// upper or eq flag => log should be displayed
184
185
for _ , flag := range tocompare_up {
185
186
if log .FlagCompareOneMoreThanTwo (one , flag ) != false {
186
- t .Fail ( )
187
+ t .Errorf ( "%s was found more than %s" , one , flag )
187
188
}
188
189
}
189
190
// down => log should be discarded
190
191
for _ , flag := range tocompare_down {
191
192
if log .FlagCompareOneMoreThanTwo (one , flag ) != true {
192
- t .Fail ( )
193
+ t .Errorf ( "%s was found less or eq than %s" , one , flag )
193
194
}
194
195
}
195
196
})
@@ -200,13 +201,13 @@ func TestFlagCompareOneMoreThanTwo(t *testing.T) {
200
201
// upper or eq flag => log should be displayed
201
202
for _ , flag := range tocompare_up {
202
203
if log .FlagCompareOneMoreThanTwo (one , flag ) != false {
203
- t .Fail ( )
204
+ t .Errorf ( "%s was found more than %s" , one , flag )
204
205
}
205
206
}
206
207
// down => log should be discarded
207
208
for _ , flag := range tocompare_down {
208
209
if log .FlagCompareOneMoreThanTwo (one , flag ) != true {
209
- t .Fail ( )
210
+ t .Errorf ( "%s was found less or eq than %s" , one , flag )
210
211
}
211
212
}
212
213
})
@@ -217,13 +218,13 @@ func TestFlagCompareOneMoreThanTwo(t *testing.T) {
217
218
// upper or eq flag => log should be displayed
218
219
for _ , flag := range tocompare_up {
219
220
if log .FlagCompareOneMoreThanTwo (one , flag ) != false {
220
- t .Fail ( )
221
+ t .Errorf ( "%s was found more eq than %s" , one , flag )
221
222
}
222
223
}
223
224
// down => log should be discarded
224
225
for _ , flag := range tocompare_down {
225
226
if log .FlagCompareOneMoreThanTwo (one , flag ) != true {
226
- t .Fail ( )
227
+ t .Errorf ( "%s was found less or eq than %s" , one , flag )
227
228
}
228
229
}
229
230
})
0 commit comments