apache / apache/lucene

modified test for testing payload [LUCENE-7812]

Open
#8,863 0 comments 0 reactions 1 assignee Claimed by @erikhatcher View on GitHub
affects-version:6.5.1 legacy-jira-priority:Minor module:core/queryparser type:test
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

no specific test for SpanPayloadCheckQuery method specifically

matches = payloadToMatch.get(upto).bytesEquals(payload);

the only implementation i could locate was in collectLeaf of SpanPayloadCheckQuery

modified SpanPayloadCheckQueryTest now tests collectLeaf of SpanPayloadCheckQuery

patch for test attached

suggestions/advice are most welcome

---
Migrated from [LUCENE-7812](https://issues.apache.org/jira/browse/LUCENE-7812) by Martin Gainty, updated May 20 2017
Environment:
```
jdk 1.8
mvn 3.3
```

Attachments: [TestPayloadCheckQuery.java](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-7812/TestPayloadCheckQuery.java)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.