testing: implement testing.TempDir

TODO: enable test on windows and wasi once os.Readdir and os.RemoveAll are implemented there
This commit is contained in:
Dan Kegel
2021-12-12 21:20:43 -08:00
committed by Nia
parent b406422277
commit b24af78327
4 changed files with 204 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
//go:build wasi
// +build wasi
package testing_test
const isWASI = true