mirror of
https://github.com/1f349/lotus.git
synced 2024-11-09 22:52:53 +00:00
19 lines
378 B
Go
19 lines
378 B
Go
package postfix_config
|
|
|
|
import (
|
|
"bytes"
|
|
_ "embed"
|
|
configParser "github.com/1f349/lotus/postfix-config/config-parser"
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
//go:embed example.cf
|
|
var exampleConfig []byte
|
|
|
|
func TestDecoder_Load(t *testing.T) {
|
|
b := bytes.NewReader(exampleConfig)
|
|
d := &Decoder{r: configParser.NewConfigParser(b)}
|
|
assert.NoError(t, d.Load())
|
|
}
|