File: event_test.go

package info (click to toggle)
golang-github-anacrolix-missinggo 2.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 836 kB
  • sloc: makefile: 4
file content (19 lines) | stat: -rw-r--r-- 255 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package missinggo

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestSetEvent(t *testing.T) {
	var e Event
	e.Set()
}

func TestEventIsSet(t *testing.T) {
	var e Event
	assert.False(t, e.IsSet())
	e.Set()
	assert.True(t, e.IsSet())
}