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: truncate_test.go
    path of file: ./repos/client/go/kbfs/test
    
    the code of the file until where you have to start completion: // Copyright 2016 Keybase Inc. All rights reserved.
// Use of this source code is governed by a BSD
// license that can be found in the LICENSE file.

// These tests test truncation

package test

import (
	"runtime"
	"testing"
)

// Test out various truncate scenarios.
func TestSimpleTruncate(t *testing.T) {
	t.Skip("This flakes m
    
func TestTruncateLargeThenWriteToSmallerOffsetWithHoles(t *testing.T) {
	if runtime.GOOS == "darwin" {
		engine := createEngine(t)
		// Use explicit engine check, rather than `skip()`, since we
		// only care about skipping this on darwin.
		if engine.Name() == "fuse" {
			// On macOS, when we write 12 bytes through fuse to a file
			// that's truncated, the OS ends up writing 4096 bytes
			// (presumably zero-filled) instead, which creates too
			// many blocks for the test to handle in a reasonable
			// amount of time.  So skip it on that platform.
			t.Skip("macOS writes blocks that are too large for the min " +
				"block size")
		}
	}

	testTruncateLargeThenWriteToSmallerOffset(
		t, 1024*1024 /* above the holes threshold */)
}