blob: aa382bc7e313a0d94314ee99d613f762ba3738db (
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/v2024/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")
}
|