build: make go1.14 the minimum supported Go for building

This commit is contained in:
Nick Craig-Wood 2021-08-20 18:05:14 +01:00
parent e4fb5e99ef
commit 2cefae51a1
15 changed files with 16 additions and 53 deletions

View file

@ -1,7 +1,6 @@
package filename
import (
"runtime"
"testing"
)
@ -120,10 +119,6 @@ func TestDecode(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
got, err := Decode(tt.encoded)
if (err != nil) != tt.wantErr {
if err != nil && err.Error() == scsuNotEnabled && runtime.Version() < "go1.13" {
t.Skip(err.Error())
return
}
if tt.encoded == "" && tt.want != "" {
proposed := Encode(tt.want)
table := decodeMap[proposed[0]] - 1