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: slot_chain_test.go
    path of file: ./repos/sentinel-golang/core/base
    
    the code of the file until where you have to start completion: // Copyright 1999-2020 Alibaba Group Holding Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file e
    
func TestSlotChain_AddStatPrepareSlot(t *testing.T) {
	sc := NewSlotChain()
	for i := 9; i >= 0; i-- {
		sc.AddStatPrepareSlot(&StatPrepareSlotMock1{
			name:  "mock2" + strconv.Itoa(i),
			order: uint32(20 + i),
		})
	}
	for i := 9; i >= 0; i-- {
		sc.AddStatPrepareSlot(&StatPrepareSlotMock1{
			name:  "mock1" + strconv.Itoa(i),
			order: uint32(10 + i),
		})
	}
	for i := 0; i < 10; i++ {
		sc.AddStatPrepareSlot(&StatPrepareSlotMock1{
			name:  "mock3" + strconv.Itoa(i),
			order: uint32(30 + i),
		})
	}
	for i := 9; i >= 0; i-- {
		sc.AddStatPrepareSlot(&StatPrepareSlotMock1{
			name:  "mock" + strconv.Itoa(i),
			order: uint32(i),
		})
	}
	for i := 0; i < 10; i++ {
		sc.AddStatPrepareSlot(&StatPrepareSlotMock1{
			name:  "mock4" + strconv.Itoa(i),
			order: uint32(40 + i),
		})
	}

	spSlice := sc.statPres
	if len(spSlice) != 50 {
		t.Error("len error")
	}

	for idx, slot := range spSlice {
		n := "mock" + strconv.Itoa(idx)
		spsm, ok := slot.(*StatPrepareSlotMock1)
		if !ok {
			t.Error("type error")
		}
		assert.True(t, reflect.DeepEqual(n, spsm.name))
	}
}