package model import ( "reflect" "testing" ) func TestComponentColumnGroupKey(t *testing.T) { got := componentColumnGroupKey("cable_26-demoProject110kV_TV") want := "cable_26-demoProject110kV_TV_component" if got != want { t.Fatalf("expected key %q, got %q", want, got) } } func TestComponentColumnHashFields(t *testing.T) { got := componentColumnHashFields([]string{"global_uuid", "nspath"}) want := []any{"global_uuid", true, "nspath", true} if !reflect.DeepEqual(got, want) { t.Fatalf("expected fields %#v, got %#v", want, got) } }