2023-08-08 13:40:12 +02:00
|
|
|
package entity
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2023-08-09 15:56:16 +02:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
2023-08-08 13:40:12 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
|
|
|
}
|