Made the Connection panel more usable for runtime testing
This commit is contained in:
@@ -5,6 +5,23 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestSessionTopologyString(t *testing.T) {
|
||||
tests := []struct {
|
||||
topology SessionTopology
|
||||
want string
|
||||
}{
|
||||
{TopologyIdle, "idle"},
|
||||
{TopologyIndependent, "independent"},
|
||||
{TopologySynchronized, "synchronized"},
|
||||
{SessionTopology(99), "SessionTopology(99)"},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
if got := tt.topology.String(); got != tt.want {
|
||||
t.Errorf("%d.String() = %q, want %q", tt.topology, got, tt.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestBuildSessionPlan(t *testing.T) {
|
||||
base := validCommandSession()
|
||||
stoppedVideo := stoppedFeed(base.Video)
|
||||
|
||||
Reference in New Issue
Block a user