This vendorization uses the new set of API changes which we are brought in. With this new change Bucket regions are handled transparently without any region lookup or local map. This makes overall code seamless and easy to use. Fixes - #1541 (cp corruption while uploading large files to s3) Fixes - #1542 (cp checkCopySyntax failed) Fixes - #1537 (regions will be handled seamelessly now for all buckets) Fixes - #1538 (fixes access control policy for google cloud storage) Fixes - #1547 (session resume completes without copying all the files) Fixes - #1559 (poor network connectivity, causes timing out)
17 lines
382 B
Go
17 lines
382 B
Go
package pb
|
|
|
|
import "testing"
|
|
|
|
func Test_RuneCount(t *testing.T) {
|
|
s := string([]byte{
|
|
27, 91, 51, 49, 109, // {Red}
|
|
72, 101, 108, 108, 111, // Hello
|
|
44, 32, // ,
|
|
112, 108, 97, 121, 103, 114, 111, 117, 110, 100, // Playground
|
|
27, 91, 48, 109, // {Reset}
|
|
})
|
|
if e, l := 17, escapeAwareRuneCountInString(s); l != e {
|
|
t.Errorf("Invalid length %d, expected %d", l, e)
|
|
}
|
|
}
|