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

import (
	"bytes"
	"io"
	"os"
	"runtime"
	"strings"
	"testing"

	"github.com/google/go-cmp/cmp"
	"github.com/ktr0731/evans/config"
	"git
    
func TestREPL_printSplash(t *testing.T) {
	dummyCfg := &config.Config{REPL: &config.REPL{}, Server: &config.Server{Host: "127.0.0.1", Port: "50051"}}

	usecase.Clear()

	w := new(bytes.Buffer)
	ui := cui.New(cui.Writer(w))

	r, err := New(dummyCfg, prompt.New(), ui, "", "")
	if err != nil {
		t.Fatalf("New must not return an erorr, but got '%s'", err)
	}

	r.printSplash("")
	if diff := cmp.Diff(w.String(), defaultSplashText+"\n"); diff != "" {
		t.Errorf("unexpected default splash: %s", diff)
	}

	home, err := os.UserHomeDir()
	if err != nil {
		t.Fatalf("failed to get user home dir: %s", err)
	}

	f, err := os.CreateTemp(home, "")
	if err != nil {
		t.Fatalf("failed to create a temp file: %s", err)
	}
	defer os.Remove(f.Name())
	defer f.Close()

	if _, err := io.WriteString(f, "hi."); err != nil {
		t.Fatalf("WriteString must not return an error, but got %s", err)
	}

	w.Reset()
	r.printSplash(f.Name())
	if w.String() != "hi.\n" {
		t.Errorf("unexpected splash: %s", w.String())
	}

	if runtime.GOOS != "windows" {
		w.Reset()
		// Replace with ~ for testing ~/ replacing logic.
		path := strings.Replace(f.Name(), home, "~", 1)
		r.printSplash(path)
		if w.String() != "hi.\n" {
			t.Errorf("unexpected splash: %s", w.String())
		}
	}
}