mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-27 10:09:13 -06:00
/{go,integration-tests}: format and fix bats
This commit is contained in:
@@ -17,8 +17,6 @@ package commands
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
textunicode "golang.org/x/text/encoding/unicode"
|
||||
"golang.org/x/text/transform"
|
||||
"io"
|
||||
"os"
|
||||
"os/signal"
|
||||
@@ -34,6 +32,8 @@ import (
|
||||
"github.com/dolthub/vitess/go/vt/vterrors"
|
||||
"github.com/fatih/color"
|
||||
"github.com/flynn-archive/go-shlex"
|
||||
textunicode "golang.org/x/text/encoding/unicode"
|
||||
"golang.org/x/text/transform"
|
||||
"gopkg.in/src-d/go-errors.v1"
|
||||
|
||||
"github.com/dolthub/dolt/go/cmd/dolt/cli"
|
||||
|
||||
@@ -2901,13 +2901,10 @@ SQL
|
||||
}
|
||||
|
||||
@test "sql: handle importing files with bom headers" {
|
||||
run dolt sql < $BATS_TEST_DIRNAME/helper/with_utf8_bom.sql
|
||||
[ "$status" -eq 0 ]
|
||||
dolt sql < $BATS_TEST_DIRNAME/helper/with_utf8_bom.sql
|
||||
dolt table rm t1
|
||||
run dolt sql < $BATS_TEST_DIRNAME/helper/with_utf16le_bom.sql
|
||||
[ "$status" -eq 0 ]
|
||||
dolt sql < $BATS_TEST_DIRNAME/helper/with_utf16le_bom.sql
|
||||
dolt table rm t1
|
||||
run dolt sql < $BATS_TEST_DIRNAME/helper/with_utf16be_bom.sql
|
||||
[ "$status" -eq 0 ]
|
||||
dolt sql < $BATS_TEST_DIRNAME/helper/with_utf16be_bom.sql
|
||||
dolt table rm t1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user