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

import (
	"bytes"
	"testing"

	"github.com/asciimoo/wuzz/config"
	"github.com/nwidger/jsoncolor"
	"github.com/x86kernel/htmlcolor"
)

func TestFormat(t *testing.T) {
	var binBuffer bytes.Buffer
	New(configFixture(true), "octet-stream").Format(&binBuffer, []byte("some binary data"))
	if binBuffer.String() != "00000000  73 6f 6d 65 20 62 69 6e  61 72 79 20 64 61 74 61  |some binary data|\n" {
		t.Error("Expected binary to eq " + binBuffer.String())
	}

	var htmlBuffer bytes.Buffer
	New(configFixture(true), "text/html; charset=utf-8").Format(&htmlBuffer, []byte("<html><span>unfomatted</span></html>"))
	var htmltargetBuffer bytes.Buffer
	htmlcolor.NewFormatter().Format(&htmltargetBuffer, []byte("<html><span>unfomatted</span>
    
func TestFormat(t *testing.T) {
	var binBuffer bytes.Buffer
	New(configFixture(true), "octet-stream").Format(&binBuffer, []byte("some binary data"))
	if binBuffer.String() != "00000000  73 6f 6d 65 20 62 69 6e  61 72 79 20 64 61 74 61  |some binary data|\n" {
		t.Error("Expected binary to eq " + binBuffer.String())
	}

	var htmlBuffer bytes.Buffer
	New(configFixture(true), "text/html; charset=utf-8").Format(&htmlBuffer, []byte("<html><span>unfomatted</span></html>"))
	var htmltargetBuffer bytes.Buffer
	htmlcolor.NewFormatter().Format(&htmltargetBuffer, []byte("<html><span>unfomatted</span></html>"))
	htmltarget := htmltargetBuffer.String()

	if htmlBuffer.String() != htmltarget {
		t.Error("Expected html to eq " + htmlBuffer.String())
	}

	var jsonEnabledBuffer bytes.Buffer
	New(configFixture(true), "application/json; charset=utf-8").Format(&jsonEnabledBuffer, []byte("{\"json\": \"some value\"}"))
	var jsontargetBuffer bytes.Buffer
	f := jsoncolor.NewFormatter()
	f.Indent = "  "
	f.Format(&jsontargetBuffer, []byte("{\"json\": \"some value\"}"))
	jsontarget := jsontargetBuffer.String()

	if jsonEnabledBuffer.String() != jsontarget {
		t.Error("Expected json to eq \n" + jsonEnabledBuffer.String() + "\nbut not\n" + jsontarget)
	}

	var jsonDisabledBuffer bytes.Buffer
	New(configFixture(false), "application/json; charset=utf-8").Format(&jsonDisabledBuffer, []byte("{\"json\": \"some value\"}"))
	if jsonDisabledBuffer.String() != "{\"json\": \"some value\"}" {
		t.Error("Expected json to eq " + jsonDisabledBuffer.String())
	}

	var textBuffer bytes.Buffer
	New(configFixture(true), "text/html; charset=utf-8").Format(&textBuffer, []byte("some text"))
	if textBuffer.String() != "some text" {
		t.Error("Expected text to eq " + textBuffer.String())
	}
}