some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / go / analysis / passes / unusedresult / testdata / src / a / a.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/go/analysis/passes/unusedresult/testdata/src/a/a.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/go/analysis/passes/unusedresult/testdata/src/a/a.go
deleted file mode 100644 (file)
index 50b2f56..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2015 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.
-
-package a
-
-import (
-       "bytes"
-       "errors"
-       "fmt"
-)
-
-func _() {
-       fmt.Errorf("") // want "result of fmt.Errorf call not used"
-       _ = fmt.Errorf("")
-
-       errors.New("") // want "result of errors.New call not used"
-
-       err := errors.New("")
-       err.Error() // want `result of \(error\).Error call not used`
-
-       var buf bytes.Buffer
-       buf.String() // want `result of \(bytes.Buffer\).String call not used`
-
-       fmt.Sprint("")  // want "result of fmt.Sprint call not used"
-       fmt.Sprintf("") // want "result of fmt.Sprintf call not used"
-}