Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Oct 12, 2023
1 parent ab45e09 commit e4a4d3f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ast/api_compat.go
Expand Up @@ -27,7 +27,7 @@
)

func init() {
println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
println("WARNING:(ast) sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
}

func quote(buf *[]byte, val string) {
Expand Down
4 changes: 1 addition & 3 deletions ast/api_native_test.go
@@ -1,4 +1,4 @@
// +build amd64,go1.16,!go1.22 arm64,go1.20,!go1.22
// +build amd64,go1.16,!go1.22

/*
* Copyright 2022 ByteDance Inc.
Expand Down Expand Up @@ -106,9 +106,7 @@ func TestTypeCast2(t *testing.T) {
err error
}
var cases = []tcase{

{"Raw", NewAny(""), "\"\"", nil},

}

for i, c := range cases {
Expand Down
4 changes: 0 additions & 4 deletions ast/b64_compat.go
Expand Up @@ -22,10 +22,6 @@ import (
`encoding/base64`
)

func init() {
println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
}

func decodeBase64(src string) ([]byte, error) {
return base64.StdEncoding.DecodeString(src)
}
Expand Down
2 changes: 1 addition & 1 deletion decoder/decoder_compat.go
Expand Up @@ -30,7 +30,7 @@ import (
)

func init() {
println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
println("WARNING(decoder): sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
}

const (
Expand Down
2 changes: 1 addition & 1 deletion encoder/encoder_compat.go
Expand Up @@ -28,7 +28,7 @@ import (
)

func init() {
println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
println("WARNING(encoder): sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
}

// Options is a set of encoding options.
Expand Down

0 comments on commit e4a4d3f

Please sign in to comment.