File tree 1 file changed +14
-12
lines changed
1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,22 @@ func TestGetCompatibleWith(t *testing.T) {
12
12
require .NoError (t , err )
13
13
require .NoError (t , root .ToAbs ())
14
14
testrunner := func (board string ) {
15
- res := GetCompatibleWith (board , root .String ())
16
- require .NotNil (t , res )
17
- hasLoader := false
18
- for _ , e := range res {
19
- for _ , i := range e {
20
- if i .IsLoader {
21
- require .False (t , hasLoader , "loader must be unique" )
22
- hasLoader = true
23
- require .NotEmpty (t , i .Name )
24
- require .NotEmpty (t , i .Path )
15
+ t .Run (board , func (t * testing.T ) {
16
+ res := GetCompatibleWith (board , root .String ())
17
+ require .NotNil (t , res )
18
+ hasLoader := false
19
+ for _ , e := range res {
20
+ for _ , i := range e {
21
+ if i .IsLoader {
22
+ require .False (t , hasLoader , "loader must be unique" )
23
+ hasLoader = true
24
+ require .NotEmpty (t , i .Name )
25
+ require .NotEmpty (t , i .Path )
26
+ }
25
27
}
26
28
}
27
- }
28
- require . True ( t , hasLoader , "loader must be present" )
29
+ require . True ( t , hasLoader , "loader must be present" )
30
+ } )
29
31
}
30
32
31
33
testrunner ("mkrwifi1010" )
You can’t perform that action at this time.
0 commit comments