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
5func TestSystemVerbKnowsLegacyRoutes(t *testing.T) {
6 verb, rest, _ := systemVerb([]string{"legacy-routes", "assign", "--name", "shop", "--to", "bac/shop"})
7 if verb != "legacy-routes" || len(rest) != 5 || rest[0] != "assign" {
8 t.Fatalf("systemVerb = %q %q", verb, rest)
9 }
10}
11