meta: Add test for deprecated package ioutil (#8053)

This commit is contained in:
Jakob Borg
2021-11-22 10:11:00 +01:00
committed by GitHub
parent 7161a99b04
commit 7c3b267645
2 changed files with 53 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,6 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
// Checks for authors that are not mentioned in AUTHORS
package meta
import (
@@ -17,6 +16,7 @@ import (
var gofmtCheckDirs = []string{".", "../cmd", "../lib", "../test", "../script"}
// Checks that files are properly gofmt:ed.
func TestCheckGoFmt(t *testing.T) {
for _, dir := range gofmtCheckDirs {
err := filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {