1234567891011121314151617181920212223242526272829303132 |
- package v1
- import (
- "testing"
- "github.com/samber/lo"
- "github.com/stretchr/testify/require"
- )
- func TestServerConfigComplete(t *testing.T) {
- require := require.New(t)
- c := &ServerConfig{}
- c.Complete()
- require.EqualValues("token", c.Auth.Method)
- require.Equal(true, lo.FromPtr(c.Transport.TCPMux))
- require.Equal(true, lo.FromPtr(c.DetailedErrorsToClient))
- }
|