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: depot_test.go
    path of file: ./repos/certstrap/depot
    
    the code of the file until where you have to start completion: /*-
 * Copyright 2015 Square Inc.
 * Copyright 2014 CoreOS
 *
 * Licensed under the Apa
    
func TestDepotCheckFailure(t *testing.T) {
	d := getDepot(t)
	defer os.RemoveAll(dir)

	if err := d.Put(&Tag{"host.pem", 0600}, []byte(data)); err != nil {
		t.Fatal("Failed putting file into Depot:", err)
	}

	// host.pem was created with mode 0600, so the permission check for 0400 should fail...
	if d.Check(&Tag{"host.pem", 0400}) {
		t.Fatal("Expected check permissions failure")
	}

	if d.Check(&Tag{"does-not-exist.pem", 0777}) {
		t.Fatal("Expect check failure for non-existent file")
	}

	if err := d.Delete(&Tag{"host.pem", 0777}); err != nil {
		t.Fatal("Failed to delete a tag:", err)
	}
}