added stringer method to phrase part
a failing test was producing unhelpful pointer addresses as the only debug output. this changes the output to print the terms and locations as readable text part of #629
This commit is contained in:
parent
930c06dfec
commit
c048833fcd
|
@ -226,6 +226,10 @@ type phrasePart struct {
|
|||
loc *search.Location
|
||||
}
|
||||
|
||||
func (p *phrasePart) String() string {
|
||||
return fmt.Sprintf("[%s %v]", p.term, p.loc)
|
||||
}
|
||||
|
||||
type phrasePath []*phrasePart
|
||||
|
||||
func (p phrasePath) MergeInto(in search.TermLocationMap) {
|
||||
|
|
Loading…
Reference in New Issue