|
|
@ -92,19 +92,19 @@ func TestBlockIndexer(t *testing.T) { |
|
|
|
q: query.MustCompile(`block.height = 5`), |
|
|
|
results: []int64{5}, |
|
|
|
}, |
|
|
|
"begin_event.key1 = 'value1'": { |
|
|
|
"finalize_event.key1 = 'value1'": { |
|
|
|
q: query.MustCompile(`finalize_event1.key1 = 'value1'`), |
|
|
|
results: []int64{}, |
|
|
|
}, |
|
|
|
"begin_event.proposer = 'FCAA001'": { |
|
|
|
"finalize_event.proposer = 'FCAA001'": { |
|
|
|
q: query.MustCompile(`finalize_event1.proposer = 'FCAA001'`), |
|
|
|
results: []int64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, |
|
|
|
}, |
|
|
|
"end_event.foo <= 5": { |
|
|
|
"finalize_event.foo <= 5": { |
|
|
|
q: query.MustCompile(`finalize_event2.foo <= 5`), |
|
|
|
results: []int64{2, 4}, |
|
|
|
}, |
|
|
|
"end_event.foo >= 100": { |
|
|
|
"finalize_event.foo >= 100": { |
|
|
|
q: query.MustCompile(`finalize_event2.foo >= 100`), |
|
|
|
results: []int64{1}, |
|
|
|
}, |
|
|
@ -112,11 +112,11 @@ func TestBlockIndexer(t *testing.T) { |
|
|
|
q: query.MustCompile(`block.height > 2 AND finalize_event2.foo <= 8`), |
|
|
|
results: []int64{4, 6, 8}, |
|
|
|
}, |
|
|
|
"begin_event.proposer CONTAINS 'FFFFFFF'": { |
|
|
|
"finalize_event.proposer CONTAINS 'FFFFFFF'": { |
|
|
|
q: query.MustCompile(`finalize_event1.proposer CONTAINS 'FFFFFFF'`), |
|
|
|
results: []int64{}, |
|
|
|
}, |
|
|
|
"begin_event.proposer CONTAINS 'FCAA001'": { |
|
|
|
"finalize_event.proposer CONTAINS 'FCAA001'": { |
|
|
|
q: query.MustCompile(`finalize_event1.proposer CONTAINS 'FCAA001'`), |
|
|
|
results: []int64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, |
|
|
|
}, |
|
|
|