tweak syntax to make older go vet happy
This commit is contained in:
parent
4433964f78
commit
dd209dcbf2
|
@ -30,7 +30,7 @@ func TestSimpleFragmentScorer(t *testing.T) {
|
|||
End: 14,
|
||||
},
|
||||
tlm: search.TermLocationMap{
|
||||
"cat": search.Locations{
|
||||
"cat": []*search.Location{
|
||||
&search.Location{
|
||||
Pos: 0,
|
||||
Start: 0,
|
||||
|
@ -47,14 +47,14 @@ func TestSimpleFragmentScorer(t *testing.T) {
|
|||
End: 14,
|
||||
},
|
||||
tlm: search.TermLocationMap{
|
||||
"cat": search.Locations{
|
||||
"cat": []*search.Location{
|
||||
&search.Location{
|
||||
Pos: 1,
|
||||
Start: 0,
|
||||
End: 3,
|
||||
},
|
||||
},
|
||||
"hat": search.Locations{
|
||||
"hat": []*search.Location{
|
||||
&search.Location{
|
||||
Pos: 4,
|
||||
Start: 11,
|
||||
|
|
|
@ -34,14 +34,14 @@ func TestSimpleHighlighter(t *testing.T) {
|
|||
Score: 1.0,
|
||||
Locations: search.FieldTermLocationMap{
|
||||
"desc": search.TermLocationMap{
|
||||
"quick": search.Locations{
|
||||
"quick": []*search.Location{
|
||||
&search.Location{
|
||||
Pos: 2,
|
||||
Start: 4,
|
||||
End: 9,
|
||||
},
|
||||
},
|
||||
"fox": search.Locations{
|
||||
"fox": []*search.Location{
|
||||
&search.Location{
|
||||
Pos: 4,
|
||||
Start: 16,
|
||||
|
@ -79,7 +79,7 @@ Etiam vel augue vel nisl commodo suscipit et ac nisl. Quisque eros diam, porttit
|
|||
Score: 1.0,
|
||||
Locations: search.FieldTermLocationMap{
|
||||
"full": search.TermLocationMap{
|
||||
"metus": search.Locations{
|
||||
"metus": []*search.Location{
|
||||
&search.Location{
|
||||
Pos: 0,
|
||||
Start: 883,
|
||||
|
@ -106,7 +106,7 @@ Etiam vel augue vel nisl commodo suscipit et ac nisl. Quisque eros diam, porttit
|
|||
End: 3422,
|
||||
},
|
||||
},
|
||||
"interdum": search.Locations{
|
||||
"interdum": []*search.Location{
|
||||
&search.Location{
|
||||
Pos: 0,
|
||||
Start: 1891,
|
||||
|
@ -118,7 +118,7 @@ Etiam vel augue vel nisl commodo suscipit et ac nisl. Quisque eros diam, porttit
|
|||
End: 2821,
|
||||
},
|
||||
},
|
||||
"venenatis": search.Locations{
|
||||
"venenatis": []*search.Location{
|
||||
&search.Location{
|
||||
Pos: 0,
|
||||
Start: 954,
|
||||
|
|
|
@ -340,7 +340,7 @@ func TestTermLocationsOrder(t *testing.T) {
|
|||
},
|
||||
{
|
||||
input: search.TermLocationMap{
|
||||
"term": search.Locations{
|
||||
"term": []*search.Location{
|
||||
&search.Location{
|
||||
Start: 0,
|
||||
},
|
||||
|
@ -362,7 +362,7 @@ func TestTermLocationsOrder(t *testing.T) {
|
|||
},
|
||||
{
|
||||
input: search.TermLocationMap{
|
||||
"term": search.Locations{
|
||||
"term": []*search.Location{
|
||||
&search.Location{
|
||||
Start: 5,
|
||||
},
|
||||
|
@ -385,7 +385,7 @@ func TestTermLocationsOrder(t *testing.T) {
|
|||
// with array positions
|
||||
{
|
||||
input: search.TermLocationMap{
|
||||
"term": search.Locations{
|
||||
"term": []*search.Location{
|
||||
&search.Location{
|
||||
ArrayPositions: []float64{0},
|
||||
Start: 0,
|
||||
|
@ -411,7 +411,7 @@ func TestTermLocationsOrder(t *testing.T) {
|
|||
},
|
||||
{
|
||||
input: search.TermLocationMap{
|
||||
"term": search.Locations{
|
||||
"term": []*search.Location{
|
||||
&search.Location{
|
||||
ArrayPositions: []float64{0},
|
||||
Start: 5,
|
||||
|
@ -437,7 +437,7 @@ func TestTermLocationsOrder(t *testing.T) {
|
|||
},
|
||||
{
|
||||
input: search.TermLocationMap{
|
||||
"term": search.Locations{
|
||||
"term": []*search.Location{
|
||||
&search.Location{
|
||||
ArrayPositions: []float64{0},
|
||||
Start: 5,
|
||||
|
@ -463,7 +463,7 @@ func TestTermLocationsOrder(t *testing.T) {
|
|||
},
|
||||
{
|
||||
input: search.TermLocationMap{
|
||||
"term": search.Locations{
|
||||
"term": []*search.Location{
|
||||
&search.Location{
|
||||
ArrayPositions: []float64{0},
|
||||
Start: 5,
|
||||
|
|
|
@ -70,7 +70,7 @@ func TestTermScorer(t *testing.T) {
|
|||
},
|
||||
Locations: search.FieldTermLocationMap{
|
||||
"desc": search.TermLocationMap{
|
||||
"beer": search.Locations{
|
||||
"beer": []*search.Location{
|
||||
&search.Location{
|
||||
Pos: 1,
|
||||
Start: 0,
|
||||
|
|
Loading…
Reference in New Issue
Block a user