@@ -35,7 +35,7 @@ func TestBasicParsing(t *testing.T) {
3535// TestParseTransaction tests the ParseTransaction entry point.
3636func TestParseTransaction (t * testing.T ) {
3737 input := `(transaction (epoch (writes) (reads)))`
38- result , err := lqp .ParseTransaction (input )
38+ result , _ , err := lqp .ParseTransaction (input )
3939 if err != nil {
4040 t .Fatalf ("Failed to parse transaction: %v" , err )
4141 }
@@ -50,7 +50,7 @@ func TestParseTransaction(t *testing.T) {
5050// TestParseFragment tests the ParseFragment entry point.
5151func TestParseFragment (t * testing.T ) {
5252 input := `(fragment :test_frag (def :my_rel ([x::INT] (relatom :my_rel x))))`
53- result , err := lqp .ParseFragment (input )
53+ result , _ , err := lqp .ParseFragment (input )
5454 if err != nil {
5555 t .Fatalf ("Failed to parse fragment: %v" , err )
5656 }
@@ -62,11 +62,11 @@ func TestParseFragment(t *testing.T) {
6262// TestParseDelegatesToParseTransaction verifies Parse and ParseTransaction return equal results.
6363func TestParseDelegatesToParseTransaction (t * testing.T ) {
6464 input := `(transaction (epoch (writes) (reads)))`
65- r1 , err := lqp .Parse (input )
65+ r1 , _ , err := lqp .Parse (input )
6666 if err != nil {
6767 t .Fatalf ("Parse failed: %v" , err )
6868 }
69- r2 , err := lqp .ParseTransaction (input )
69+ r2 , _ , err := lqp .ParseTransaction (input )
7070 if err != nil {
7171 t .Fatalf ("ParseTransaction failed: %v" , err )
7272 }
@@ -77,15 +77,15 @@ func TestParseDelegatesToParseTransaction(t *testing.T) {
7777
7878// TestParseFragmentRejectsTransaction verifies ParseFragment rejects transaction input.
7979func TestParseFragmentRejectsTransaction (t * testing.T ) {
80- _ , err := lqp .ParseFragment (`(transaction (epoch (writes) (reads)))` )
80+ _ , _ , err := lqp .ParseFragment (`(transaction (epoch (writes) (reads)))` )
8181 if err == nil {
8282 t .Error ("ParseFragment should reject transaction input" )
8383 }
8484}
8585
8686// TestParseTransactionRejectsFragment verifies ParseTransaction rejects fragment input.
8787func TestParseTransactionRejectsFragment (t * testing.T ) {
88- _ , err := lqp .ParseTransaction (`(fragment :f (def :r ([x::INT] (relatom :r x) )))` )
88+ _ , _ , err := lqp .ParseTransaction (`(fragment :f (def :r ([x::INT] (relatom :r x)))` )
8989 if err == nil {
9090 t .Error ("ParseTransaction should reject fragment input" )
9191 }
0 commit comments