17 lines
287 B
Go
17 lines
287 B
Go
|
package entity
|
||
|
|
||
|
import (
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestSession_Report(t *testing.T) {
|
||
|
m := FindSessionByRefID("sessxkkcabcd")
|
||
|
|
||
|
r, _ := m.Report(false)
|
||
|
assert.GreaterOrEqual(t, len(r), 1)
|
||
|
|
||
|
r2, _ := m.Report(true)
|
||
|
assert.GreaterOrEqual(t, len(r2), 1)
|
||
|
}
|