aboutsummaryrefslogtreecommitdiff
path: root/internal/lsp/testdata/missingfunction
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/testdata/missingfunction')
-rw-r--r--internal/lsp/testdata/missingfunction/channels.go9
-rw-r--r--internal/lsp/testdata/missingfunction/channels.go.golden15
-rw-r--r--internal/lsp/testdata/missingfunction/consecutive_params.go6
-rw-r--r--internal/lsp/testdata/missingfunction/consecutive_params.go.golden12
-rw-r--r--internal/lsp/testdata/missingfunction/error_param.go6
-rw-r--r--internal/lsp/testdata/missingfunction/error_param.go.golden12
-rw-r--r--internal/lsp/testdata/missingfunction/literals.go7
-rw-r--r--internal/lsp/testdata/missingfunction/literals.go.golden29
-rw-r--r--internal/lsp/testdata/missingfunction/operation.go7
-rw-r--r--internal/lsp/testdata/missingfunction/operation.go.golden29
-rw-r--r--internal/lsp/testdata/missingfunction/selector.go6
-rw-r--r--internal/lsp/testdata/missingfunction/selector.go.golden12
-rw-r--r--internal/lsp/testdata/missingfunction/slice.go5
-rw-r--r--internal/lsp/testdata/missingfunction/slice.go.golden11
-rw-r--r--internal/lsp/testdata/missingfunction/tuple.go9
-rw-r--r--internal/lsp/testdata/missingfunction/tuple.go.golden15
-rw-r--r--internal/lsp/testdata/missingfunction/unique_params.go7
-rw-r--r--internal/lsp/testdata/missingfunction/unique_params.go.golden30
18 files changed, 0 insertions, 227 deletions
diff --git a/internal/lsp/testdata/missingfunction/channels.go b/internal/lsp/testdata/missingfunction/channels.go
deleted file mode 100644
index 436491c19..000000000
--- a/internal/lsp/testdata/missingfunction/channels.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package missingfunction
-
-func channels(s string) {
- undefinedChannels(c()) //@suggestedfix("undefinedChannels", "quickfix")
-}
-
-func c() (<-chan string, chan string) {
- return make(<-chan string), make(chan string)
-}
diff --git a/internal/lsp/testdata/missingfunction/channels.go.golden b/internal/lsp/testdata/missingfunction/channels.go.golden
deleted file mode 100644
index f5078fed1..000000000
--- a/internal/lsp/testdata/missingfunction/channels.go.golden
+++ /dev/null
@@ -1,15 +0,0 @@
--- suggestedfix_channels_4_2 --
-package missingfunction
-
-func channels(s string) {
- undefinedChannels(c()) //@suggestedfix("undefinedChannels", "quickfix")
-}
-
-func undefinedChannels(ch1 <-chan string, ch2 chan string) {
- panic("unimplemented")
-}
-
-func c() (<-chan string, chan string) {
- return make(<-chan string), make(chan string)
-}
-
diff --git a/internal/lsp/testdata/missingfunction/consecutive_params.go b/internal/lsp/testdata/missingfunction/consecutive_params.go
deleted file mode 100644
index d2ec3be32..000000000
--- a/internal/lsp/testdata/missingfunction/consecutive_params.go
+++ /dev/null
@@ -1,6 +0,0 @@
-package missingfunction
-
-func consecutiveParams() {
- var s string
- undefinedConsecutiveParams(s, s) //@suggestedfix("undefinedConsecutiveParams", "quickfix")
-}
diff --git a/internal/lsp/testdata/missingfunction/consecutive_params.go.golden b/internal/lsp/testdata/missingfunction/consecutive_params.go.golden
deleted file mode 100644
index 14a766496..000000000
--- a/internal/lsp/testdata/missingfunction/consecutive_params.go.golden
+++ /dev/null
@@ -1,12 +0,0 @@
--- suggestedfix_consecutive_params_5_2 --
-package missingfunction
-
-func consecutiveParams() {
- var s string
- undefinedConsecutiveParams(s, s) //@suggestedfix("undefinedConsecutiveParams", "quickfix")
-}
-
-func undefinedConsecutiveParams(s1, s2 string) {
- panic("unimplemented")
-}
-
diff --git a/internal/lsp/testdata/missingfunction/error_param.go b/internal/lsp/testdata/missingfunction/error_param.go
deleted file mode 100644
index 9fd943ffb..000000000
--- a/internal/lsp/testdata/missingfunction/error_param.go
+++ /dev/null
@@ -1,6 +0,0 @@
-package missingfunction
-
-func errorParam() {
- var err error
- undefinedErrorParam(err) //@suggestedfix("undefinedErrorParam", "quickfix")
-}
diff --git a/internal/lsp/testdata/missingfunction/error_param.go.golden b/internal/lsp/testdata/missingfunction/error_param.go.golden
deleted file mode 100644
index 2e1271181..000000000
--- a/internal/lsp/testdata/missingfunction/error_param.go.golden
+++ /dev/null
@@ -1,12 +0,0 @@
--- suggestedfix_error_param_5_2 --
-package missingfunction
-
-func errorParam() {
- var err error
- undefinedErrorParam(err) //@suggestedfix("undefinedErrorParam", "quickfix")
-}
-
-func undefinedErrorParam(err error) {
- panic("unimplemented")
-}
-
diff --git a/internal/lsp/testdata/missingfunction/literals.go b/internal/lsp/testdata/missingfunction/literals.go
deleted file mode 100644
index e276eae79..000000000
--- a/internal/lsp/testdata/missingfunction/literals.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package missingfunction
-
-type T struct{}
-
-func literals() {
- undefinedLiterals("hey compiler", T{}, &T{}) //@suggestedfix("undefinedLiterals", "quickfix")
-}
diff --git a/internal/lsp/testdata/missingfunction/literals.go.golden b/internal/lsp/testdata/missingfunction/literals.go.golden
deleted file mode 100644
index 04782b9bf..000000000
--- a/internal/lsp/testdata/missingfunction/literals.go.golden
+++ /dev/null
@@ -1,29 +0,0 @@
--- suggestedfix_literals_10_2 --
-// Copyright 2021 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 missingfunction
-
-type T struct{}
-
-func literals() {
- undefinedLiterals("hey compiler", T{}, &T{}) //@suggestedfix("undefinedLiterals", "quickfix")
-}
-
-func undefinedLiterals(s string, t1 T, t2 *T) {
- panic("implement me!")
-}
--- suggestedfix_literals_6_2 --
-package missingfunction
-
-type T struct{}
-
-func literals() {
- undefinedLiterals("hey compiler", T{}, &T{}) //@suggestedfix("undefinedLiterals", "quickfix")
-}
-
-func undefinedLiterals(s string, t1 T, t2 *T) {
- panic("unimplemented")
-}
-
diff --git a/internal/lsp/testdata/missingfunction/operation.go b/internal/lsp/testdata/missingfunction/operation.go
deleted file mode 100644
index 0408219fe..000000000
--- a/internal/lsp/testdata/missingfunction/operation.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package missingfunction
-
-import "time"
-
-func operation() {
- undefinedOperation(10 * time.Second) //@suggestedfix("undefinedOperation", "quickfix")
-}
diff --git a/internal/lsp/testdata/missingfunction/operation.go.golden b/internal/lsp/testdata/missingfunction/operation.go.golden
deleted file mode 100644
index 5e35f3005..000000000
--- a/internal/lsp/testdata/missingfunction/operation.go.golden
+++ /dev/null
@@ -1,29 +0,0 @@
--- suggestedfix_operation_10_2 --
-// Copyright 2021 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 missingfunction
-
-import "time"
-
-func operation() {
- undefinedOperation(10 * time.Second) //@suggestedfix("undefinedOperation", "quickfix")
-}
-
-func undefinedOperation(duration time.Duration) {
- panic("implement me!")
-}
--- suggestedfix_operation_6_2 --
-package missingfunction
-
-import "time"
-
-func operation() {
- undefinedOperation(10 * time.Second) //@suggestedfix("undefinedOperation", "quickfix")
-}
-
-func undefinedOperation(duration time.Duration) {
- panic("unimplemented")
-}
-
diff --git a/internal/lsp/testdata/missingfunction/selector.go b/internal/lsp/testdata/missingfunction/selector.go
deleted file mode 100644
index afd1ab61f..000000000
--- a/internal/lsp/testdata/missingfunction/selector.go
+++ /dev/null
@@ -1,6 +0,0 @@
-package missingfunction
-
-func selector() {
- m := map[int]bool{}
- undefinedSelector(m[1]) //@suggestedfix("undefinedSelector", "quickfix")
-}
diff --git a/internal/lsp/testdata/missingfunction/selector.go.golden b/internal/lsp/testdata/missingfunction/selector.go.golden
deleted file mode 100644
index c48691c4e..000000000
--- a/internal/lsp/testdata/missingfunction/selector.go.golden
+++ /dev/null
@@ -1,12 +0,0 @@
--- suggestedfix_selector_5_2 --
-package missingfunction
-
-func selector() {
- m := map[int]bool{}
- undefinedSelector(m[1]) //@suggestedfix("undefinedSelector", "quickfix")
-}
-
-func undefinedSelector(b bool) {
- panic("unimplemented")
-}
-
diff --git a/internal/lsp/testdata/missingfunction/slice.go b/internal/lsp/testdata/missingfunction/slice.go
deleted file mode 100644
index 4a562a2e7..000000000
--- a/internal/lsp/testdata/missingfunction/slice.go
+++ /dev/null
@@ -1,5 +0,0 @@
-package missingfunction
-
-func slice() {
- undefinedSlice([]int{1, 2}) //@suggestedfix("undefinedSlice", "quickfix")
-}
diff --git a/internal/lsp/testdata/missingfunction/slice.go.golden b/internal/lsp/testdata/missingfunction/slice.go.golden
deleted file mode 100644
index 0ccb8611b..000000000
--- a/internal/lsp/testdata/missingfunction/slice.go.golden
+++ /dev/null
@@ -1,11 +0,0 @@
--- suggestedfix_slice_4_2 --
-package missingfunction
-
-func slice() {
- undefinedSlice([]int{1, 2}) //@suggestedfix("undefinedSlice", "quickfix")
-}
-
-func undefinedSlice(i []int) {
- panic("unimplemented")
-}
-
diff --git a/internal/lsp/testdata/missingfunction/tuple.go b/internal/lsp/testdata/missingfunction/tuple.go
deleted file mode 100644
index 1c4782c15..000000000
--- a/internal/lsp/testdata/missingfunction/tuple.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package missingfunction
-
-func tuple() {
- undefinedTuple(b()) //@suggestedfix("undefinedTuple", "quickfix")
-}
-
-func b() (string, error) {
- return "", nil
-}
diff --git a/internal/lsp/testdata/missingfunction/tuple.go.golden b/internal/lsp/testdata/missingfunction/tuple.go.golden
deleted file mode 100644
index 1e12bb708..000000000
--- a/internal/lsp/testdata/missingfunction/tuple.go.golden
+++ /dev/null
@@ -1,15 +0,0 @@
--- suggestedfix_tuple_4_2 --
-package missingfunction
-
-func tuple() {
- undefinedTuple(b()) //@suggestedfix("undefinedTuple", "quickfix")
-}
-
-func undefinedTuple(s string, err error) {
- panic("unimplemented")
-}
-
-func b() (string, error) {
- return "", nil
-}
-
diff --git a/internal/lsp/testdata/missingfunction/unique_params.go b/internal/lsp/testdata/missingfunction/unique_params.go
deleted file mode 100644
index ffaba3f9c..000000000
--- a/internal/lsp/testdata/missingfunction/unique_params.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package missingfunction
-
-func uniqueArguments() {
- var s string
- var i int
- undefinedUniqueArguments(s, i, s) //@suggestedfix("undefinedUniqueArguments", "quickfix")
-}
diff --git a/internal/lsp/testdata/missingfunction/unique_params.go.golden b/internal/lsp/testdata/missingfunction/unique_params.go.golden
deleted file mode 100644
index 74fb91a8e..000000000
--- a/internal/lsp/testdata/missingfunction/unique_params.go.golden
+++ /dev/null
@@ -1,30 +0,0 @@
--- suggestedfix_unique_params_10_2 --
-// Copyright 2021 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 missingfunction
-
-func uniqueArguments() {
- var s string
- var i int
- undefinedUniqueArguments(s, i, s) //@suggestedfix("undefinedUniqueArguments", "quickfix")
-}
-
-func undefinedUniqueArguments(s1 string, i int, s2 string) {
- panic("implement me!")
-}
-
--- suggestedfix_unique_params_6_2 --
-package missingfunction
-
-func uniqueArguments() {
- var s string
- var i int
- undefinedUniqueArguments(s, i, s) //@suggestedfix("undefinedUniqueArguments", "quickfix")
-}
-
-func undefinedUniqueArguments(s1 string, i int, s2 string) {
- panic("unimplemented")
-}
-