@@ -84,38 +84,38 @@ func TestCQLEvalFn(t *testing.T) {
8484 ]
8585 }` ).GetBundle (),
8686 wantResult : []* cbpb.BeamResult {
87- & cbpb. BeamResult {
87+ {
8888 Id : proto .String ("1" ),
8989 EvaluationTimestamp : timestamppb .New (time .Date (2023 , time .January , 1 , 0 , 0 , 0 , 0 , time .UTC )),
9090 Result : & crpb.Libraries {
9191 Libraries : []* crpb.Library {
92- & crpb. Library {
92+ {
9393 Name : proto .String ("EvalTest" ),
9494 Version : proto .String ("1.0" ),
9595 ExprDefs : map [string ]* crpb.Value {
96- "HasDiabetes" : & crpb. Value {
96+ "HasDiabetes" : {
9797 Value : & crpb.Value_BooleanValue {BooleanValue : true },
9898 },
99- "HasHypertension" : & crpb. Value {
99+ "HasHypertension" : {
100100 Value : & crpb.Value_BooleanValue {BooleanValue : true },
101101 },
102- "DiabetesVS" : & crpb. Value {
102+ "DiabetesVS" : {
103103 Value : & crpb.Value_ValueSetValue {
104104 ValueSetValue : & crpb.ValueSet {Id : proto .String ("urn:example:diabetes" ), Version : proto .String ("" )},
105105 },
106106 },
107- "HypertensionVS" : & crpb. Value {
107+ "HypertensionVS" : {
108108 Value : & crpb.Value_ValueSetValue {
109109 ValueSetValue : & crpb.ValueSet {Id : proto .String ("urn:example:hypertension" ), Version : proto .String ("" )},
110110 },
111111 },
112112 },
113113 },
114- & crpb. Library {
114+ {
115115 Name : proto .String ("BeamMetadata" ),
116116 Version : proto .String ("1.0.0" ),
117117 ExprDefs : map [string ]* crpb.Value {
118- "ID" : & crpb. Value {
118+ "ID" : {
119119 Value : & crpb.Value_StringValue {StringValue : "1" },
120120 },
121121 },
@@ -159,7 +159,7 @@ func TestCQLEvalFn(t *testing.T) {
159159 ]
160160 }` ).GetBundle (),
161161 wantError : []* cbpb.BeamError {
162- & cbpb. BeamError {
162+ {
163163 ErrorMessage : proto .String ("failed during CQL evaluation: EvalTest 1.0, could not find ValueSet{urn:example:nosuchvalueset, } resource not loaded" ),
164164 SourceUri : proto .String ("bundle:bundle1" ),
165165 },
0 commit comments