Skip to content

Commit

Permalink
extend test for dsmark
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed Aug 31, 2024
1 parent 3bcc4ef commit 14466e7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions class_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,15 @@ func TestClass(t *testing.T) {
tcMsg.Handle = core.BuildHandle(0x1, 0x1)

tests := map[string]struct {
kind string
err error
hfsc *Hfsc
htb *Htb
kind string
err error
hfsc *Hfsc
htb *Htb
dsmark *Dsmark
}{
"hfsc": {kind: "hfsc", hfsc: &Hfsc{Rsc: &ServiceCurve{M1: 12, D: 34, M2: 56}}},
"htb": {kind: "htb", htb: &Htb{DirectQlen: uint32Ptr(4455)}},
"dsmark": {kind: "dsmark", dsmark: &Dsmark{DefaultIndex: uint16Ptr(42)}},
"unknown": {kind: "unknown", err: ErrNotImplemented},
}

Expand All @@ -96,9 +98,10 @@ func TestClass(t *testing.T) {
testClass := Object{
tcMsg,
Attribute{
Kind: testcase.kind,
Hfsc: testcase.hfsc,
Htb: testcase.htb,
Kind: testcase.kind,
Hfsc: testcase.hfsc,
Htb: testcase.htb,
Dsmark: testcase.dsmark,
},
}

Expand Down

0 comments on commit 14466e7

Please sign in to comment.