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: scheduler_options_test.go
    path of file: ./repos/cadence/common/task
    
    the code of the file until where you have to start completion: // Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files 
    
func TestSchedulerOptionsString(t *testing.T) {
	tests := []struct {
		desc            string
		schedulerType   int
		queueSize       int
		workerCount     dynamicconfig.IntPropertyFn
		dispatcherCount int
		weights         dynamicconfig.MapPropertyFn
		wantErr         bool
		want            string
	}{
		{
			desc:            "FIFO",
			schedulerType:   int(SchedulerTypeFIFO),
			queueSize:       1,
			workerCount:     dynamicconfig.GetIntPropertyFn(3),
			dispatcherCount: 1,
			want:            "{schedulerType:1, fifoSchedulerOptions:{QueueSize: 1, WorkerCount: 3, DispatcherCount: 1}, wrrSchedulerOptions:<nil>}",
		},
		{
			desc:            "WRR",
			schedulerType:   int(SchedulerTypeWRR),
			queueSize:       3,
			workerCount:     dynamicconfig.GetIntPropertyFn(4),
			dispatcherCount: 5,
			weights: dynamicconfig.GetMapPropertyFn(map[string]interface{}{
				"1": 500,
				"9": 20,
			}),
			want: "{schedulerType:2, fifoSchedulerOptions:<nil>, wrrSchedulerOptions:{QueueSize: 3, WorkerCount: 4, DispatcherCount: 5, Weights: map[1:500 9:20]}}",
		},
		{
			desc:          "InvalidSchedulerType",
			schedulerType: 3,
			wantErr:       true,
		},
	}

	for _, tc := range tests {
		t.Run(tc.desc, func(t *testing.T) {
			o, err := NewSchedulerOptions(tc.schedulerType, tc.queueSize, tc.workerCount, tc.dispatcherCount, tc.weights)
			if (err != nil) != tc.wantErr {
				t.Errorf("Got error: %v, wantErr: %v", err, tc.wantErr)
			}
			if err != nil {
				return
			}
			if got := o.String(); got != tc.want {
				t.Errorf("Got: %v, want: %v", got, tc.want)
			}
		})
	}
}