diff options
author | Valery Piashchynski <[email protected]> | 2021-01-21 13:25:36 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-01-21 13:25:36 +0300 |
commit | 7da6c78449776e1f3c6716250bca0b712a0423a4 (patch) | |
tree | f3512de66aca2bba408485a0ea2fc936c0e4fb9b /tests/plugins/static | |
parent | 0ff05b2732b4fd0783f959c94c54d7e39169f979 (diff) |
Uniform all configs
Add debug server
Check nil's for all plugin intialization
Diffstat (limited to 'tests/plugins/static')
-rw-r--r-- | tests/plugins/static/config_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/plugins/static/config_test.go b/tests/plugins/static/config_test.go index f458eed3..d73fd845 100644 --- a/tests/plugins/static/config_test.go +++ b/tests/plugins/static/config_test.go @@ -8,7 +8,7 @@ import ( ) func TestConfig_Forbids(t *testing.T) { - cfg := static.Config{Static: struct { + cfg := static.Config{Static: &struct { Dir string Forbid []string Always []string @@ -23,7 +23,7 @@ func TestConfig_Forbids(t *testing.T) { } func TestConfig_Valid(t *testing.T) { - assert.NoError(t, (&static.Config{Static: struct { + assert.NoError(t, (&static.Config{Static: &struct { Dir string Forbid []string Always []string @@ -31,15 +31,15 @@ func TestConfig_Valid(t *testing.T) { Response map[string]string }{Dir: "./"}}).Valid()) - assert.Error(t, (&static.Config{Static: struct { + assert.Error(t, (&static.Config{Static: &struct { Dir string Forbid []string Always []string Request map[string]string Response map[string]string - }{Dir: "./config.go"}}).Valid()) + }{Dir: "./http.go"}}).Valid()) - assert.Error(t, (&static.Config{Static: struct { + assert.Error(t, (&static.Config{Static: &struct { Dir string Forbid []string Always []string |