mirror of
https://github.com/hanzoai/o11y-foundry.git
synced 2026-10-30 18:26:45 +00:00
17 lines
319 B
Go
17 lines
319 B
Go
package dockercomposecasting
|
|
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNotEmptyAndValid(t *testing.T) {
|
|
assert.NotEmpty(t, composeYAMLTemplate)
|
|
buf := bytes.NewBuffer(nil)
|
|
err := composeYAMLTemplate.Execute(buf, nil)
|
|
assert.NoError(t, err)
|
|
assert.NotEmpty(t, buf.String())
|
|
}
|