carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package hostclaim
2
3import "testing"
4
5func TestPlan9Fix1SessionContinuesRequiresAdjacentForwardStep(t *testing.T) {
6 for _, tc := range []struct {
7 from, to string
8 want bool
9 }{
10 {"probing", "probing", true},
11 {"probing", "probed", true},
12 {"probed", "committed", true},
13 {"probing", "committed", false},
14 {"probed", "probing", false},
15 } {
16 if got := SessionContinues(KindLanding, tc.from, tc.to); got != tc.want {
17 t.Errorf("SessionContinues(%q, %q) = %v, want %v", tc.from, tc.to, got, tc.want)
18 }
19 }
20}
21