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: home_nix_test.go
    path of file: ./repos/client/go/libkb
    
    the code of the file until where you have to start completion: // Copyright 2015 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.

//go:build !windows
// +build !windows

package libkb

import (
	"os"
	"path"
	"strings"
	"testing"

	"github.com/stretchr/testify/require"
)

func TestPosix(t *testing.T) {
	hf := NewHomeFinder("tester", nil, nil, nil, "posix", func() RunMode { return ProductionRunMode },
		makeLogGetter(t), nil)
	d := hf.CacheDir()
	if !strings.Contains(d, ".cache/tester") {
		t.Errorf("Bad Cache dir: %s", d)
	}
	d = hf.DataDir()
	if !strings.Contains(d, ".local/share/tester") {
		t.Errorf("Bad Data dir: %s", d)
	}
	d = hf.ConfigDir()
	if !str
    
func TestDarwinHomeFinder(t *testing.T) {
	for _, osname := range []string{"darwin", "ios"} {
		hf := NewHomeFinder("keybase", nil, nil, nil, osname, func() RunMode { return ProductionRunMode }, makeLogGetter(t), nil)
		d := hf.ConfigDir()
		if !strings.HasSuffix(d, "Library/Application Support/Keybase") {
			t.Errorf("Bad config dir: %s", d)
		}
		d = hf.CacheDir()
		if !strings.HasSuffix(d, "Library/Caches/Keybase") {
			t.Errorf("Bad cache dir: %s", d)
		}
		hfInt := NewHomeFinder("keybase", func() string { return "home" }, nil, func() string { return "mobilehome" },
			osname, func() RunMode { return ProductionRunMode }, makeLogGetter(t), nil)
		hfDarwin := hfInt.(Darwin)
		hfDarwin.forceIOS = true
		hf = hfDarwin
		d = hf.ConfigDir()
		require.True(t, strings.HasSuffix(d, "Library/Application Support/Keybase"))
		require.True(t, strings.HasPrefix(d, "mobilehome"))
		d = hf.DataDir()
		require.True(t, strings.HasSuffix(d, "Library/Application Support/Keybase"))
		require.False(t, strings.HasPrefix(d, "mobilehome"))
		require.True(t, strings.HasPrefix(d, "home"))
	}
}