File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ func TestMEIClass(t *testing.T) {
3232 t .Fatal (err )
3333 }
3434
35+ name := "mei0"
3536 dev := "244:0"
3637 devState := "ENABLED"
3738 fwStatus := "90000245\n 00110500\n 00000020\n 00000000\n 02F41F03\n 40000000"
@@ -43,15 +44,18 @@ func TestMEIClass(t *testing.T) {
4344 txQueueLimit := "50"
4445
4546 want := & MEIClass {
46- Dev : & dev ,
47- DevState : & devState ,
48- FWStatus : & fwStatus ,
49- FWVersion : & fwVer ,
50- HBMVersion : & hbmVer ,
51- HBMVersionDrv : & hbmVerDrv ,
52- Kind : & kind ,
53- Trc : & trc ,
54- TxQueueLimit : & txQueueLimit ,
47+ "mei0" : MEIDev {
48+ Name : & name ,
49+ Dev : & dev ,
50+ DevState : & devState ,
51+ FWStatus : & fwStatus ,
52+ FWVersion : & fwVer ,
53+ HBMVersion : & hbmVer ,
54+ HBMVersionDrv : & hbmVerDrv ,
55+ Kind : & kind ,
56+ Trc : & trc ,
57+ TxQueueLimit : & txQueueLimit ,
58+ },
5559 }
5660
5761 if diff := cmp .Diff (want , got ); diff != "" {
You can’t perform that action at this time.
0 commit comments