1
// Copyright 2016 Canonical Ltd.
2
// Licensed under the AGPLv3, see LICENCE file for details.
10
gc "gopkg.in/check.v1"
12
"github.com/juju/romulus/cmd/commands"
15
type commandSuite struct{}
17
var _ = gc.Suite(&commandSuite{})
19
type mockRegister struct {
23
func (m *mockRegister) Register(command cmd.Command) {
24
m.commands = append(m.commands, command.Info().Name)
27
func TestAll(t *stdtesting.T) {
31
func (s *commandSuite) TestRegister(c *gc.C) {
33
commands.RegisterAll(m)
34
c.Assert(m.commands, gc.DeepEquals, []string{