serialAlox/proto/proto_test.go
simon 4b991729ea
Some checks failed
Build / Build (push) Has been cancelled
Added Reading of Json with Protocol Definition
2025-05-31 18:47:03 +02:00

24 lines
304 B
Go

package proto
import (
"encoding/json"
"log"
"os"
"testing"
)
func TestReadJson(t *testing.T) {
con, err := os.ReadFile("../testdata/prot1.json")
if err != nil {
log.Fatalf("Could not read file %v", err)
}
pc := &ProtoComplete{}
json.Unmarshal(con, pc)
log.Printf("%v", pc)
t.Fail()
}