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

import (
	"os"
	"testing"

	"github.com/mkchoi212/fac/testhel
    
func TestColors(t *testing.T) {
	// Redirect stdout
	oldStdout := os.Stdout
	_, w, err := os.Pipe()
	testhelper.Ok(t, err)

	os.Stdout = w

	// Restore old stdout
	defer func() {
		w.Close()
		os.Stdout = oldStdout
	}()

	// Check output
	var out string
	for _, test := range tests {
		if len(test.input) == 1 {
			// With formatter
			out = test.color(Regular, test.input[0])
		} else {
			// Without formatter
			s := make([]interface{}, len(test.input)-1)
			for i, v := range test.input[1:] {
				s[i] = v
			}
			out = test.color(Regular, test.input[0], s...)
		}

		testhelper.Equals(t, test.expected, out)
	}
}