carlos / platform Public

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

Plain git — no account needed to clone.

Download

Download this file

1package main
2
3import "testing"
4
5// I-4: cancelling an unpublished activation is reachable from the CLI, in
6// both the bare and the component form, with its flags left for the verb.
7func TestPlan9SystemVerbCancelActivation(t *testing.T) {
8 for _, in := range [][]string{
9 {"cancel-activation", "--channel", "stable"},
10 {"router", "cancel-activation", "--channel", "stable"},
11 } {
12 verb, rest, comp := systemVerb(in)
13 if verb != "cancel-activation" || comp != "router" || len(rest) != 2 {
14 t.Errorf("systemVerb(%v) = %q %v %q", in, verb, rest, comp)
15 }
16 }
17}
18