-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp_test.go
More file actions
43 lines (34 loc) · 770 Bytes
/
app_test.go
File metadata and controls
43 lines (34 loc) · 770 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package config
import (
_ "fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
// AppTestSuite ...
type AppTestSuite struct {
suite.Suite
}
// SetupTest ...
func (suite *AppTestSuite) SetupTest() {
}
// TestLoad ...
func (suite *AppTestSuite) TestLoad() {
assert.NotNil(suite.T(), App)
}
// TestPrintable ...
func (suite *AppTestSuite) TestPrintable() {
assert.NotEqual(suite.T(), "", App.String())
}
// TestName ...
func (suite *AppTestSuite) TestName() {
assert.Equal(suite.T(), "rai", App.Name)
}
// TestLicense ...
func (suite *AppTestSuite) TestLicense() {
assert.Equal(suite.T(), "NCSA or Apache-2.0", App.License)
}
// TestAppConfig ...
func TestAppConfig(t *testing.T) {
suite.Run(t, new(AppTestSuite))
}