2018-02-01 16:41:58 +01:00
|
|
|
package accounting
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
2020-06-04 16:09:03 +02:00
|
|
|
"context"
|
2019-01-14 17:12:39 +01:00
|
|
|
"fmt"
|
2018-02-01 16:41:58 +01:00
|
|
|
"io"
|
|
|
|
"strings"
|
|
|
|
"testing"
|
2019-01-14 17:12:39 +01:00
|
|
|
"unicode/utf8"
|
2018-02-01 16:41:58 +01:00
|
|
|
|
2019-07-28 19:47:38 +02:00
|
|
|
"github.com/rclone/rclone/fs"
|
|
|
|
"github.com/rclone/rclone/fs/asyncreader"
|
|
|
|
"github.com/rclone/rclone/fs/fserrors"
|
2020-04-23 11:39:06 +02:00
|
|
|
"github.com/rclone/rclone/lib/readers"
|
2018-02-01 16:41:58 +01:00
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Check it satisfies the interfaces
|
|
|
|
var (
|
|
|
|
_ io.ReadCloser = &Account{}
|
2020-02-13 17:06:05 +01:00
|
|
|
_ io.WriterTo = &Account{}
|
2018-02-01 16:41:58 +01:00
|
|
|
_ io.Reader = &accountStream{}
|
|
|
|
_ Accounter = &Account{}
|
|
|
|
_ Accounter = &accountStream{}
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestNewAccountSizeName(t *testing.T) {
|
2020-11-05 17:59:59 +01:00
|
|
|
ctx := context.Background()
|
2022-08-20 16:38:02 +02:00
|
|
|
in := io.NopCloser(bytes.NewBuffer([]byte{1}))
|
2020-11-05 17:59:59 +01:00
|
|
|
stats := NewStats(ctx)
|
2020-06-04 16:09:03 +02:00
|
|
|
acc := newAccountSizeName(context.Background(), stats, in, 1, "test")
|
2018-02-01 16:41:58 +01:00
|
|
|
assert.Equal(t, in, acc.in)
|
2019-07-16 13:56:20 +02:00
|
|
|
assert.Equal(t, acc, stats.inProgress.get("test"))
|
2018-02-01 16:41:58 +01:00
|
|
|
err := acc.Close()
|
|
|
|
assert.NoError(t, err)
|
2019-09-18 17:54:34 +02:00
|
|
|
assert.Equal(t, acc, stats.inProgress.get("test"))
|
|
|
|
acc.Done()
|
2019-07-16 13:56:20 +02:00
|
|
|
assert.Nil(t, stats.inProgress.get("test"))
|
2020-06-26 18:24:16 +02:00
|
|
|
assert.False(t, acc.HasBuffer())
|
2018-02-01 16:41:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestAccountWithBuffer(t *testing.T) {
|
2020-11-05 17:59:59 +01:00
|
|
|
ctx := context.Background()
|
2022-08-20 16:38:02 +02:00
|
|
|
in := io.NopCloser(bytes.NewBuffer([]byte{1}))
|
2018-02-01 16:41:58 +01:00
|
|
|
|
2020-11-05 17:59:59 +01:00
|
|
|
stats := NewStats(ctx)
|
|
|
|
acc := newAccountSizeName(ctx, stats, in, -1, "test")
|
2020-06-26 18:24:16 +02:00
|
|
|
assert.False(t, acc.HasBuffer())
|
2018-02-01 16:41:58 +01:00
|
|
|
acc.WithBuffer()
|
2020-06-26 18:24:16 +02:00
|
|
|
assert.True(t, acc.HasBuffer())
|
2018-02-01 16:41:58 +01:00
|
|
|
// should have a buffer for an unknown size
|
|
|
|
_, ok := acc.in.(*asyncreader.AsyncReader)
|
|
|
|
require.True(t, ok)
|
|
|
|
assert.NoError(t, acc.Close())
|
|
|
|
|
2020-11-05 17:59:59 +01:00
|
|
|
acc = newAccountSizeName(ctx, stats, in, 1, "test")
|
2018-02-01 16:41:58 +01:00
|
|
|
acc.WithBuffer()
|
|
|
|
// should not have a buffer for a small size
|
|
|
|
_, ok = acc.in.(*asyncreader.AsyncReader)
|
|
|
|
require.False(t, ok)
|
|
|
|
assert.NoError(t, acc.Close())
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestAccountGetUpdateReader(t *testing.T) {
|
2020-11-05 17:59:59 +01:00
|
|
|
ctx := context.Background()
|
2019-09-18 17:54:34 +02:00
|
|
|
test := func(doClose bool) func(t *testing.T) {
|
|
|
|
return func(t *testing.T) {
|
2022-08-20 16:38:02 +02:00
|
|
|
in := io.NopCloser(bytes.NewBuffer([]byte{1}))
|
2020-11-05 17:59:59 +01:00
|
|
|
stats := NewStats(ctx)
|
|
|
|
acc := newAccountSizeName(ctx, stats, in, 1, "test")
|
2019-09-18 17:54:34 +02:00
|
|
|
|
|
|
|
assert.Equal(t, in, acc.GetReader())
|
|
|
|
assert.Equal(t, acc, stats.inProgress.get("test"))
|
|
|
|
|
|
|
|
if doClose {
|
|
|
|
// close the account before swapping it out
|
|
|
|
require.NoError(t, acc.Close())
|
|
|
|
}
|
|
|
|
|
2022-08-20 16:38:02 +02:00
|
|
|
in2 := io.NopCloser(bytes.NewBuffer([]byte{1}))
|
2020-11-05 17:59:59 +01:00
|
|
|
acc.UpdateReader(ctx, in2)
|
2019-09-18 17:54:34 +02:00
|
|
|
|
|
|
|
assert.Equal(t, in2, acc.GetReader())
|
|
|
|
assert.Equal(t, acc, stats.inProgress.get("test"))
|
|
|
|
|
|
|
|
assert.NoError(t, acc.Close())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
t.Run("NoClose", test(false))
|
|
|
|
t.Run("Close", test(true))
|
2018-02-01 16:41:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestAccountRead(t *testing.T) {
|
2020-11-05 17:59:59 +01:00
|
|
|
ctx := context.Background()
|
2022-08-20 16:38:02 +02:00
|
|
|
in := io.NopCloser(bytes.NewBuffer([]byte{1, 2, 3}))
|
2020-11-05 17:59:59 +01:00
|
|
|
stats := NewStats(ctx)
|
|
|
|
acc := newAccountSizeName(ctx, stats, in, 1, "test")
|
2018-02-01 16:41:58 +01:00
|
|
|
|
2020-05-12 17:16:17 +02:00
|
|
|
assert.True(t, acc.values.start.IsZero())
|
|
|
|
acc.values.mu.Lock()
|
|
|
|
assert.Equal(t, 0, acc.values.lpBytes)
|
|
|
|
assert.Equal(t, int64(0), acc.values.bytes)
|
|
|
|
acc.values.mu.Unlock()
|
2019-07-16 13:56:20 +02:00
|
|
|
assert.Equal(t, int64(0), stats.bytes)
|
2018-02-01 16:41:58 +01:00
|
|
|
|
|
|
|
var buf = make([]byte, 2)
|
|
|
|
n, err := acc.Read(buf)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
assert.Equal(t, 2, n)
|
|
|
|
assert.Equal(t, []byte{1, 2}, buf[:n])
|
|
|
|
|
2020-05-12 17:16:17 +02:00
|
|
|
assert.False(t, acc.values.start.IsZero())
|
|
|
|
acc.values.mu.Lock()
|
|
|
|
assert.Equal(t, 2, acc.values.lpBytes)
|
|
|
|
assert.Equal(t, int64(2), acc.values.bytes)
|
|
|
|
acc.values.mu.Unlock()
|
2019-07-16 13:56:20 +02:00
|
|
|
assert.Equal(t, int64(2), stats.bytes)
|
2018-02-01 16:41:58 +01:00
|
|
|
|
|
|
|
n, err = acc.Read(buf)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
assert.Equal(t, 1, n)
|
|
|
|
assert.Equal(t, []byte{3}, buf[:n])
|
|
|
|
|
|
|
|
n, err = acc.Read(buf)
|
|
|
|
assert.Equal(t, io.EOF, err)
|
|
|
|
assert.Equal(t, 0, n)
|
|
|
|
|
|
|
|
assert.NoError(t, acc.Close())
|
|
|
|
}
|
|
|
|
|
2020-02-13 17:06:05 +01:00
|
|
|
func testAccountWriteTo(t *testing.T, withBuffer bool) {
|
2020-11-05 17:59:59 +01:00
|
|
|
ctx := context.Background()
|
2020-02-13 17:06:05 +01:00
|
|
|
buf := make([]byte, 2*asyncreader.BufferSize+1)
|
|
|
|
for i := range buf {
|
|
|
|
buf[i] = byte(i % 251)
|
|
|
|
}
|
2022-08-20 16:38:02 +02:00
|
|
|
in := io.NopCloser(bytes.NewBuffer(buf))
|
2020-11-05 17:59:59 +01:00
|
|
|
stats := NewStats(ctx)
|
|
|
|
acc := newAccountSizeName(ctx, stats, in, int64(len(buf)), "test")
|
2020-02-13 17:06:05 +01:00
|
|
|
if withBuffer {
|
|
|
|
acc = acc.WithBuffer()
|
|
|
|
}
|
|
|
|
|
2020-05-12 17:16:17 +02:00
|
|
|
assert.True(t, acc.values.start.IsZero())
|
|
|
|
acc.values.mu.Lock()
|
|
|
|
assert.Equal(t, 0, acc.values.lpBytes)
|
|
|
|
assert.Equal(t, int64(0), acc.values.bytes)
|
|
|
|
acc.values.mu.Unlock()
|
2020-02-13 17:06:05 +01:00
|
|
|
assert.Equal(t, int64(0), stats.bytes)
|
|
|
|
|
|
|
|
var out bytes.Buffer
|
|
|
|
|
|
|
|
n, err := acc.WriteTo(&out)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
assert.Equal(t, int64(len(buf)), n)
|
|
|
|
assert.Equal(t, buf, out.Bytes())
|
|
|
|
|
2020-05-12 17:16:17 +02:00
|
|
|
assert.False(t, acc.values.start.IsZero())
|
|
|
|
acc.values.mu.Lock()
|
|
|
|
assert.Equal(t, len(buf), acc.values.lpBytes)
|
|
|
|
assert.Equal(t, int64(len(buf)), acc.values.bytes)
|
|
|
|
acc.values.mu.Unlock()
|
2020-02-13 17:06:05 +01:00
|
|
|
assert.Equal(t, int64(len(buf)), stats.bytes)
|
|
|
|
|
|
|
|
assert.NoError(t, acc.Close())
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestAccountWriteTo(t *testing.T) {
|
|
|
|
testAccountWriteTo(t, false)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestAccountWriteToWithBuffer(t *testing.T) {
|
|
|
|
testAccountWriteTo(t, true)
|
|
|
|
}
|
|
|
|
|
2018-02-01 16:41:58 +01:00
|
|
|
func TestAccountString(t *testing.T) {
|
2020-11-05 17:59:59 +01:00
|
|
|
ctx := context.Background()
|
2022-08-20 16:38:02 +02:00
|
|
|
in := io.NopCloser(bytes.NewBuffer([]byte{1, 2, 3}))
|
2020-11-05 17:59:59 +01:00
|
|
|
stats := NewStats(ctx)
|
|
|
|
acc := newAccountSizeName(ctx, stats, in, 3, "test")
|
2018-02-01 16:41:58 +01:00
|
|
|
|
|
|
|
// FIXME not an exhaustive test!
|
|
|
|
|
|
|
|
assert.Equal(t, "test: 0% /3, 0/s, -", strings.TrimSpace(acc.String()))
|
|
|
|
|
|
|
|
var buf = make([]byte, 2)
|
|
|
|
n, err := acc.Read(buf)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
assert.Equal(t, 2, n)
|
|
|
|
|
|
|
|
assert.Equal(t, "test: 66% /3, 0/s, -", strings.TrimSpace(acc.String()))
|
|
|
|
|
|
|
|
assert.NoError(t, acc.Close())
|
|
|
|
}
|
|
|
|
|
|
|
|
// Test the Accounter interface methods on Account and accountStream
|
|
|
|
func TestAccountAccounter(t *testing.T) {
|
2020-11-05 17:59:59 +01:00
|
|
|
ctx := context.Background()
|
2022-08-20 16:38:02 +02:00
|
|
|
in := io.NopCloser(bytes.NewBuffer([]byte{1, 2, 3}))
|
2020-11-05 17:59:59 +01:00
|
|
|
stats := NewStats(ctx)
|
|
|
|
acc := newAccountSizeName(ctx, stats, in, 3, "test")
|
2018-02-01 16:41:58 +01:00
|
|
|
|
|
|
|
assert.True(t, in == acc.OldStream())
|
|
|
|
|
2022-08-20 16:38:02 +02:00
|
|
|
in2 := io.NopCloser(bytes.NewBuffer([]byte{2, 3, 4}))
|
2018-02-01 16:41:58 +01:00
|
|
|
|
|
|
|
acc.SetStream(in2)
|
|
|
|
assert.True(t, in2 == acc.OldStream())
|
|
|
|
|
|
|
|
r := acc.WrapStream(in)
|
|
|
|
as, ok := r.(Accounter)
|
|
|
|
require.True(t, ok)
|
|
|
|
assert.True(t, in == as.OldStream())
|
|
|
|
assert.True(t, in2 == acc.OldStream())
|
|
|
|
accs, ok := r.(*accountStream)
|
|
|
|
require.True(t, ok)
|
|
|
|
assert.Equal(t, acc, accs.acc)
|
|
|
|
assert.True(t, in == accs.in)
|
|
|
|
|
|
|
|
// Check Read on the accountStream
|
|
|
|
var buf = make([]byte, 2)
|
|
|
|
n, err := r.Read(buf)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
assert.Equal(t, 2, n)
|
|
|
|
assert.Equal(t, []byte{1, 2}, buf[:n])
|
|
|
|
|
|
|
|
// Test that we can get another accountstream out
|
2022-08-20 16:38:02 +02:00
|
|
|
in3 := io.NopCloser(bytes.NewBuffer([]byte{3, 1, 2}))
|
2018-02-01 16:41:58 +01:00
|
|
|
r2 := as.WrapStream(in3)
|
|
|
|
as2, ok := r2.(Accounter)
|
|
|
|
require.True(t, ok)
|
|
|
|
assert.True(t, in3 == as2.OldStream())
|
|
|
|
assert.True(t, in2 == acc.OldStream())
|
|
|
|
accs2, ok := r2.(*accountStream)
|
|
|
|
require.True(t, ok)
|
|
|
|
assert.Equal(t, acc, accs2.acc)
|
|
|
|
assert.True(t, in3 == accs2.in)
|
|
|
|
|
|
|
|
// Test we can set this new accountStream
|
|
|
|
as2.SetStream(in)
|
|
|
|
assert.True(t, in == as2.OldStream())
|
|
|
|
|
|
|
|
// Test UnWrap on accountStream
|
|
|
|
unwrapped, wrap := UnWrap(r2)
|
|
|
|
assert.True(t, unwrapped == in)
|
|
|
|
r3 := wrap(in2)
|
|
|
|
assert.True(t, in2 == r3.(Accounter).OldStream())
|
|
|
|
|
|
|
|
// TestUnWrap on a normal io.Reader
|
|
|
|
unwrapped, wrap = UnWrap(in2)
|
|
|
|
assert.True(t, unwrapped == in2)
|
|
|
|
assert.True(t, wrap(in3) == in3)
|
|
|
|
|
|
|
|
}
|
2018-04-21 23:03:27 +02:00
|
|
|
|
|
|
|
func TestAccountMaxTransfer(t *testing.T) {
|
2020-11-05 17:59:59 +01:00
|
|
|
ctx := context.Background()
|
2020-11-05 12:33:32 +01:00
|
|
|
ci := fs.GetConfig(ctx)
|
|
|
|
old := ci.MaxTransfer
|
|
|
|
oldMode := ci.CutoffMode
|
2019-10-30 20:23:17 +01:00
|
|
|
|
2020-11-05 12:33:32 +01:00
|
|
|
ci.MaxTransfer = 15
|
2018-04-21 23:03:27 +02:00
|
|
|
defer func() {
|
2020-11-05 12:33:32 +01:00
|
|
|
ci.MaxTransfer = old
|
|
|
|
ci.CutoffMode = oldMode
|
2018-04-21 23:03:27 +02:00
|
|
|
}()
|
|
|
|
|
2022-08-20 16:38:02 +02:00
|
|
|
in := io.NopCloser(bytes.NewBuffer(make([]byte, 100)))
|
2020-11-05 17:59:59 +01:00
|
|
|
stats := NewStats(ctx)
|
|
|
|
acc := newAccountSizeName(ctx, stats, in, 1, "test")
|
2018-04-21 23:03:27 +02:00
|
|
|
|
|
|
|
var b = make([]byte, 10)
|
|
|
|
|
|
|
|
n, err := acc.Read(b)
|
|
|
|
assert.Equal(t, 10, n)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
n, err = acc.Read(b)
|
2020-03-13 17:20:15 +01:00
|
|
|
assert.Equal(t, 5, n)
|
|
|
|
assert.Equal(t, ErrorMaxTransferLimitReachedFatal, err)
|
2018-04-21 23:03:27 +02:00
|
|
|
n, err = acc.Read(b)
|
|
|
|
assert.Equal(t, 0, n)
|
2020-03-10 13:00:10 +01:00
|
|
|
assert.Equal(t, ErrorMaxTransferLimitReachedFatal, err)
|
2018-04-21 23:03:27 +02:00
|
|
|
assert.True(t, fserrors.IsFatalError(err))
|
2019-10-30 20:23:17 +01:00
|
|
|
|
2020-11-05 12:33:32 +01:00
|
|
|
ci.CutoffMode = fs.CutoffModeSoft
|
2020-11-05 17:59:59 +01:00
|
|
|
stats = NewStats(ctx)
|
|
|
|
acc = newAccountSizeName(ctx, stats, in, 1, "test")
|
2019-10-30 20:23:17 +01:00
|
|
|
|
|
|
|
n, err = acc.Read(b)
|
|
|
|
assert.Equal(t, 10, n)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
n, err = acc.Read(b)
|
|
|
|
assert.Equal(t, 10, n)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
n, err = acc.Read(b)
|
|
|
|
assert.Equal(t, 10, n)
|
|
|
|
assert.NoError(t, err)
|
2018-04-21 23:03:27 +02:00
|
|
|
}
|
2019-01-14 17:12:39 +01:00
|
|
|
|
2020-04-23 11:39:06 +02:00
|
|
|
func TestAccountMaxTransferWriteTo(t *testing.T) {
|
2020-11-05 17:59:59 +01:00
|
|
|
ctx := context.Background()
|
2020-11-05 12:33:32 +01:00
|
|
|
ci := fs.GetConfig(ctx)
|
|
|
|
old := ci.MaxTransfer
|
|
|
|
oldMode := ci.CutoffMode
|
2020-04-23 11:39:06 +02:00
|
|
|
|
2020-11-05 12:33:32 +01:00
|
|
|
ci.MaxTransfer = 15
|
2020-04-23 11:39:06 +02:00
|
|
|
defer func() {
|
2020-11-05 12:33:32 +01:00
|
|
|
ci.MaxTransfer = old
|
|
|
|
ci.CutoffMode = oldMode
|
2020-04-23 11:39:06 +02:00
|
|
|
}()
|
|
|
|
|
2022-08-20 16:38:02 +02:00
|
|
|
in := io.NopCloser(readers.NewPatternReader(1024))
|
2020-11-05 17:59:59 +01:00
|
|
|
stats := NewStats(ctx)
|
|
|
|
acc := newAccountSizeName(ctx, stats, in, 1, "test")
|
2020-04-23 11:39:06 +02:00
|
|
|
|
|
|
|
var b bytes.Buffer
|
|
|
|
|
|
|
|
n, err := acc.WriteTo(&b)
|
|
|
|
assert.Equal(t, int64(15), n)
|
|
|
|
assert.Equal(t, ErrorMaxTransferLimitReachedFatal, err)
|
|
|
|
}
|
|
|
|
|
2020-06-04 16:32:17 +02:00
|
|
|
func TestAccountReadCtx(t *testing.T) {
|
2020-11-05 17:59:59 +01:00
|
|
|
ctx := context.Background()
|
|
|
|
ctx, cancel := context.WithCancel(ctx)
|
2022-08-20 16:38:02 +02:00
|
|
|
in := io.NopCloser(bytes.NewBuffer(make([]byte, 100)))
|
2020-11-05 17:59:59 +01:00
|
|
|
stats := NewStats(ctx)
|
2020-06-04 16:32:17 +02:00
|
|
|
acc := newAccountSizeName(ctx, stats, in, 1, "test")
|
|
|
|
|
|
|
|
var b = make([]byte, 10)
|
|
|
|
|
|
|
|
n, err := acc.Read(b)
|
|
|
|
assert.Equal(t, 10, n)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
|
|
|
|
cancel()
|
|
|
|
|
|
|
|
n, err = acc.Read(b)
|
|
|
|
assert.Equal(t, 0, n)
|
|
|
|
assert.Equal(t, context.Canceled, err)
|
|
|
|
}
|
|
|
|
|
2019-01-14 17:12:39 +01:00
|
|
|
func TestShortenName(t *testing.T) {
|
|
|
|
for _, test := range []struct {
|
|
|
|
in string
|
|
|
|
size int
|
|
|
|
want string
|
|
|
|
}{
|
|
|
|
{"", 0, ""},
|
|
|
|
{"abcde", 10, "abcde"},
|
|
|
|
{"abcde", 0, "abcde"},
|
|
|
|
{"abcde", -1, "abcde"},
|
|
|
|
{"abcde", 5, "abcde"},
|
|
|
|
{"abcde", 4, "ab…e"},
|
|
|
|
{"abcde", 3, "a…e"},
|
|
|
|
{"abcde", 2, "a…"},
|
|
|
|
{"abcde", 1, "…"},
|
|
|
|
{"abcdef", 6, "abcdef"},
|
|
|
|
{"abcdef", 5, "ab…ef"},
|
|
|
|
{"abcdef", 4, "ab…f"},
|
|
|
|
{"abcdef", 3, "a…f"},
|
|
|
|
{"abcdef", 2, "a…"},
|
|
|
|
{"áßcdèf", 1, "…"},
|
|
|
|
{"áßcdè", 5, "áßcdè"},
|
|
|
|
{"áßcdè", 4, "áß…è"},
|
|
|
|
{"áßcdè", 3, "á…è"},
|
|
|
|
{"áßcdè", 2, "á…"},
|
|
|
|
{"áßcdè", 1, "…"},
|
|
|
|
{"áßcdèł", 6, "áßcdèł"},
|
|
|
|
{"áßcdèł", 5, "áß…èł"},
|
|
|
|
{"áßcdèł", 4, "áß…ł"},
|
|
|
|
{"áßcdèł", 3, "á…ł"},
|
|
|
|
{"áßcdèł", 2, "á…"},
|
|
|
|
{"áßcdèł", 1, "…"},
|
|
|
|
} {
|
|
|
|
t.Run(fmt.Sprintf("in=%q, size=%d", test.in, test.size), func(t *testing.T) {
|
|
|
|
got := shortenName(test.in, test.size)
|
|
|
|
assert.Equal(t, test.want, got)
|
|
|
|
if test.size > 0 {
|
|
|
|
assert.True(t, utf8.RuneCountInString(got) <= test.size, "too big")
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|