1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

ROUTE53 cleanups

This commit is contained in:
Tom Limoncelli
2023-11-12 13:03:14 -05:00
parent 09582484ec
commit 4940628df6
4 changed files with 38 additions and 23 deletions

View File

@@ -3,11 +3,12 @@ package commands
import (
"bytes"
"fmt"
"github.com/google/go-cmp/cmp"
"strings"
"testing"
"text/template"
"github.com/google/go-cmp/cmp"
"github.com/urfave/cli/v2"
"golang.org/x/exp/slices"
)
@@ -178,7 +179,7 @@ func TestShellCompletionCommand(t *testing.T) {
for _, tt := range shellsAndCompletionScripts {
testCases[0].expected = append(testCases[0].expected, tt.shellName)
for i, _ := range tt.shellName {
for i := range tt.shellName {
testCases = append(testCases, testCase{
shellArg: tt.shellName[:i+1],
expected: []string{tt.shellName},