mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 13:25:40 +00:00
move test implementations to a shared internal package
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/jwetzell/showbridge-go/internal/common"
|
||||
"github.com/jwetzell/showbridge-go/internal/config"
|
||||
"github.com/jwetzell/showbridge-go/internal/processor"
|
||||
"github.com/jwetzell/showbridge-go/internal/test"
|
||||
)
|
||||
|
||||
func TestStringCreateFromRegistry(t *testing.T) {
|
||||
@@ -70,13 +71,13 @@ func TestGoodStringCreate(t *testing.T) {
|
||||
{
|
||||
name: "struct payload - field",
|
||||
params: map[string]any{"template": "{{.Payload.Data}}"},
|
||||
payload: TestStruct{Data: "test"},
|
||||
payload: test.TestStruct{Data: "test"},
|
||||
expected: "test",
|
||||
},
|
||||
{
|
||||
name: "struct payload - method",
|
||||
params: map[string]any{"template": "{{.Payload.GetData}}"},
|
||||
payload: TestStruct{Data: "test"},
|
||||
payload: test.TestStruct{Data: "test"},
|
||||
expected: "test",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user