blob: 80da39491a378ea750f994fc09ae0e18b75dec1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package serve_test
import (
"testing"
"github.com/roadrunner-server/roadrunner/v2023/internal/cli/serve"
"github.com/stretchr/testify/assert"
)
func TestCommandProperties(t *testing.T) {
path := ""
cmd := serve.NewCommand(nil, &path, nil, nil)
assert.Equal(t, "serve", cmd.Use)
assert.NotNil(t, cmd.RunE)
}
func TestCommandNil(t *testing.T) {
cmd := serve.NewCommand(nil, nil, nil, nil)
assert.Equal(t, "serve", cmd.Use)
assert.NotNil(t, cmd.RunE)
}
func TestExecution(t *testing.T) {
t.Skip("Command execution is not implemented yet")
}
|