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: system_collector_test.go
    path of file: ./repos/harbor/src/pkg/exporter
    
    the code of the file until where you have to start completion: package exporter

import (
	"net/http"
	"net/http/httptest"
	"net/url"
	"reflect"
	"strconv"
	"testing"

	"github.com/prometheus/client_golang/prometheus"
)

func TestNewSystemInfoCollector(t *testing.T) {
	type args struct {
		hbrCli *HarborClient
	}
	tests := []struct {
		name string
		args args
		want *SystemInfoCollector
	}{
		{
			name: "test new system info collector",
			args: args{
				hbrCli: &HarborClient{},
			},
			want: &SystemInfoCollector{
				HarborClient: &HarborClient{},
			},
		},
	}
	for _, tt := range tests {
		t
    
func TestSystemInfoCollector_Collect(t *testing.T) {
	CacheInit(&Opt{
		CacheDuration: 60,
	})
	data := []prometheus.Metric{
		prometheus.MustNewConstMetric(harborSysInfo.Desc(), prometheus.GaugeValue, 1, "ldap_auth", "v2.0.0", "true"),
	}
	CachePut(systemInfoCollectorName, data)
	type fields struct {
		HarborClient *HarborClient
	}
	type args struct {
		c chan prometheus.Metric
	}
	tests := []struct {
		name   string
		fields fields
		args   args
	}{
		{
			name: "test collect",
			fields: fields{
				HarborClient: &HarborClient{},
			},
			args: args{
				c: make(chan prometheus.Metric),
			},
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			InitHarborClient(tt.fields.HarborClient)
			hc := &SystemInfoCollector{
				HarborClient: tt.fields.HarborClient,
			}
			go hc.Collect(tt.args.c)
			metric := <-tt.args.c
			if !reflect.DeepEqual(metric, data[0]) {
				t.Errorf("SystemInfoCollector.Collect() = %v, want %v", metric, data[0])
			}
		})
	}
}