refactor: now utils is an internal package (#166)

Let us make internal everything because this is not a library.
This commit is contained in:
Simone Basso 2020-11-13 17:28:02 +01:00 committed by GitHub
commit a4ae94b5ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 10 additions and 10 deletions

View file

@ -1,18 +0,0 @@
package utils
import (
"testing"
"github.com/fatih/color"
)
func TestEscapeAwareRuneCountInString(t *testing.T) {
var bold = color.New(color.Bold)
var myColor = color.New(color.FgBlue)
s := myColor.Sprintf("•ABC%s%s", bold.Sprintf("DEF"), "\x1B[00;38;5;244m\x1B[m\x1B[00;38;5;33mGHI\x1B[0m")
count := EscapeAwareRuneCountInString(s)
if count != 10 {
t.Errorf("Count was incorrect, got: %d, want: %d.", count, 10)
}
}