mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CHORE: lint (#2619)
This commit is contained in:
@ -3,11 +3,12 @@ package commands
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/google/go-cmp/cmp"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
|
"github.com/google/go-cmp/cmp"
|
||||||
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
)
|
)
|
||||||
@ -178,7 +179,7 @@ func TestShellCompletionCommand(t *testing.T) {
|
|||||||
|
|
||||||
for _, tt := range shellsAndCompletionScripts {
|
for _, tt := range shellsAndCompletionScripts {
|
||||||
testCases[0].expected = append(testCases[0].expected, tt.shellName)
|
testCases[0].expected = append(testCases[0].expected, tt.shellName)
|
||||||
for i, _ := range tt.shellName {
|
for i := range tt.shellName {
|
||||||
testCases = append(testCases, testCase{
|
testCases = append(testCases, testCase{
|
||||||
shellArg: tt.shellName[:i+1],
|
shellArg: tt.shellName[:i+1],
|
||||||
expected: []string{tt.shellName},
|
expected: []string{tt.shellName},
|
||||||
|
Reference in New Issue
Block a user