You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ranker_test.go
    path of file: ./repos/riot/core
    
    the code of the file until where you have to start completion: package core

import (
	"reflect"
	"testing"

	"github.com/go-ego/riot/types"
	"github.com/vcaesar/tt"
)

type DummyScoringFields struct {
	label   string
	counter int
	amount  float32
}

type DummyScoringCriteria struct {
	Threshold float32
}

func (criteria DummyScoringCriteria) Score(
	doc types.Indexe
    
func TestRemoveDoc(t *testing.T) {
	var ranker Ranker
	attri := Attri{Title: "title", Author: "who"}

	ranker.Init()
	ranker.AddDoc("1", DummyScoringFields{
		label:   "label3",
		counter: 3,
		amount:  22.3,
	}, "content", attri)
	ranker.AddDoc("2", DummyScoringFields{
		label:   "label4",
		counter: 1,
		amount:  2,
	}, "content", attri)
	ranker.AddDoc("3", DummyScoringFields{
		label:   "label1",
		counter: 7,
		amount:  10.3,
	}, "content", attri)
	ranker.RemoveDoc("3")

	criteria := DummyScoringCriteria{}
	scoredDocs, _ := ranker.Rank([]types.IndexedDoc{
		{DocId: "1", TokenProximity: 6},
		{DocId: "2", TokenProximity: -1},
		{DocId: "3", TokenProximity: 24},
		{DocId: "4", TokenProximity: 18},
	}, types.RankOpts{ScoringCriteria: criteria}, false)
	tt.Expect(t, "[1 [25300 ]] [2 [3000 ]] ",
		scoredDocsToString(scoredDocs.(types.ScoredDocs)))
}