mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
move test struct to common place
This commit is contained in:
@@ -8,6 +8,18 @@ import (
|
|||||||
"github.com/jwetzell/showbridge-go/internal/processor"
|
"github.com/jwetzell/showbridge-go/internal/processor"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type TestStruct struct {
|
||||||
|
String string
|
||||||
|
Int int
|
||||||
|
Float float64
|
||||||
|
Bool bool
|
||||||
|
Data any
|
||||||
|
}
|
||||||
|
|
||||||
|
func (t TestStruct) GetData() any {
|
||||||
|
return t.Data
|
||||||
|
}
|
||||||
|
|
||||||
type TestProcessor struct {
|
type TestProcessor struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,14 +7,6 @@ import (
|
|||||||
"github.com/jwetzell/showbridge-go/internal/processor"
|
"github.com/jwetzell/showbridge-go/internal/processor"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TestStruct struct {
|
|
||||||
Data string
|
|
||||||
}
|
|
||||||
|
|
||||||
func (t TestStruct) GetData() string {
|
|
||||||
return t.Data
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestStringCreateFromRegistry(t *testing.T) {
|
func TestStringCreateFromRegistry(t *testing.T) {
|
||||||
registration, ok := processor.ProcessorRegistry["string.create"]
|
registration, ok := processor.ProcessorRegistry["string.create"]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user