mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Test NewModuleValidator func
This commit is contained in:
parent
b1022d6d18
commit
4205327b95
@ -11,8 +11,7 @@ import (
|
|||||||
type ModuleValidator struct{}
|
type ModuleValidator struct{}
|
||||||
|
|
||||||
func NewModuleValidator() *ModuleValidator {
|
func NewModuleValidator() *ModuleValidator {
|
||||||
val := &ModuleValidator{}
|
return &ModuleValidator{}
|
||||||
return val
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate rolls through all the enabled widgets and looks for configuration errors.
|
// Validate rolls through all the enabled widgets and looks for configuration errors.
|
||||||
|
11
app/module_validator_test.go
Normal file
11
app/module_validator_test.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package app
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Test_NewModuleValidator(t *testing.T) {
|
||||||
|
assert.IsType(t, &ModuleValidator{}, NewModuleValidator())
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user