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: switch_test.go
    path of file: ./repos/oak/render
    
    the code of the file until where you have to start completion: package render

import (
	"image"
	"image/color"
	"reflect"
	"testing"

	"github.com/oakmound/oak/v4/physics"
	"github.com/oakmound/oak/v4/render/mod"
)

func TestCompoundFuncs(t *testing.T) {
	swtch := NewSwitch("red", map[string]Modifiable{
		"red":   NewColorBox(5, 5, color.RGBA{255, 0, 0, 255}),
		"blue":  NewColorBox(5, 5, color.RGBA{0, 0, 255, 255}),
		"green": NewColorBox(5, 5, color.RGBA{0, 255, 0, 255}),
		"empty": NewColorBox(5, 5, color.RGBA{0, 0, 0, 0}),
	})
	if swtch.GetRGBA().At(0, 0) != (color.RGBA{255, 0, 0, 255}) {
		t.Fatalf("red 
    
func TestSwitchModifiability(t *testing.T) {
	cb := NewColorBox(5, 5, color.RGBA{255, 0, 0, 255})
	cmp := NewSwitch("red", map[string]Modifiable{
		"red":  NewReverting(NewColorBox(5, 5, color.RGBA{255, 0, 0, 255})),
		"blue": NewReverting(NewColorBox(5, 5, color.RGBA{0, 0, 255, 255})),
	})

	if !reflect.DeepEqual(cb.GetRGBA(), cmp.GetRGBA()) {
		t.Fatalf("rgba mismatch")
	}
	for _, mod := range neqmods {
		cmp.Modify(mod)
		if reflect.DeepEqual(cb.GetRGBA(), cmp.GetRGBA()) {
			t.Fatalf("neq mod should result in changed rgba")
		}
		cmp.Revert(1)
		if !reflect.DeepEqual(cb.GetRGBA(), cmp.GetRGBA()) {
			t.Fatalf("rgba mismatch")
		}
	}
	for _, mod := range eqmods {
		cmp.Modify(mod)
		if !reflect.DeepEqual(cb.GetRGBA(), cmp.GetRGBA()) {
			t.Fatalf("rgba mismatch")
		}
	}
	cmp.RevertAll()
	if !reflect.DeepEqual(cb.GetRGBA(), cmp.GetRGBA()) {
		t.Fatalf("rgba mismatch")
	}

	cmp.Filter(mod.Brighten(-100))
	if reflect.DeepEqual(cb.GetRGBA(), cmp.GetRGBA()) {
		t.Fatalf("brighten filter should result in changed rgba")
	}
	cmp.RevertAll()
	if !reflect.DeepEqual(cb.GetRGBA(), cmp.GetRGBA()) {
		t.Fatalf("rgba mismatch")
	}

}