| 1 | package scwscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/ |
| 2 | |
| 3 | import ( |
| 4 | "testingscip-go gomod github.com/golang/go/src go1.17 testing/" |
| 5 | "timescip-go gomod github.com/golang/go/src go1.17 time/" |
| 6 | |
| 7 | "github.com/scaleway/scaleway-sdk-go/internal/testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/" |
| 8 | ) |
| 9 | |
| 10 | var ( |
| 11 | testStringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testString. = "some string" |
| 12 | testBytesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testBytes. = []byte{0, 1, 2} |
| 13 | testBoolscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testBool. = true |
| 14 | testInt32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testInt32. int32 = 42 |
| 15 | testInt64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testInt64. int64 = 43 |
| 16 | testUInt32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testUInt32. uint32 = 44 |
| 17 | testUInt64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testUInt64. uint64 = 45 |
| 18 | testFloat32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testFloat32. float32 = 46 |
| 19 | testFloat64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testFloat64. float64 = 47 |
| 20 | testDurationscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testDuration. timescip-go gomod github.com/golang/go/src go1.17 time/.Durationscip-go gomod github.com/golang/go/src go1.17 time/Duration# = 48 |
| 21 | testTimescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testTime. = timescip-go gomod github.com/golang/go/src go1.17 time/.Datescip-go gomod github.com/golang/go/src go1.17 time/Date().(2009, 11, 10, 23, 0, 0, 0, timescip-go gomod github.com/golang/go/src go1.17 time/.UTCscip-go gomod github.com/golang/go/src go1.17 time/UTC.) |
| 22 | testSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testSize. = 3 * GBscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/GB. |
| 23 | ) |
| 24 | |
| 25 | func TestStringPtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestStringPtr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 26 | pointer := StringPtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/StringPtr().(testStringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testString.) |
| 27 | slice := []string{testStringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testString.} |
| 28 | sliceOfPointers := StringSlicePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/StringSlicePtr().(slice) |
| 29 | pointerToSlice := StringsPtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/StringsPtr().(slice) |
| 30 | |
| 31 | // value to pointer value |
| 32 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 33 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testStringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testString., *pointer) |
| 34 | |
| 35 | // slice of values to slice of pointers to value |
| 36 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, 1, len(sliceOfPointers)) |
| 37 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, sliceOfPointers[0] != nil, "Pointer should have value") |
| 38 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testStringscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testString., *sliceOfPointers[0]) |
| 39 | |
| 40 | // slice of value to pointer to slice of values |
| 41 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointerToSlice != nil, "Pointer should have value") |
| 42 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, slice, *pointerToSlice) |
| 43 | } |
| 44 | |
| 45 | func TestBytesPtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestBytesPtr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 46 | pointer := BytesPtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/BytesPtr().(testBytesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testBytes.) |
| 47 | slice := [][]byte{testBytesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testBytes.} |
| 48 | sliceOfPointers := BytesSlicePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/BytesSlicePtr().(slice) |
| 49 | |
| 50 | // value to pointer value |
| 51 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 52 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testBytesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testBytes., *pointer) |
| 53 | |
| 54 | // slice of values to slice of pointers to value |
| 55 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, 1, len(sliceOfPointers)) |
| 56 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, sliceOfPointers[0] != nil, "Pointer should have value") |
| 57 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testBytesscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testBytes., *sliceOfPointers[0]) |
| 58 | } |
| 59 | |
| 60 | func TestBoolPtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestBoolPtr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 61 | pointer := BoolPtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/BoolPtr().(testBoolscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testBool.) |
| 62 | slice := []bool{testBoolscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testBool.} |
| 63 | sliceOfPointers := BoolSlicePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/BoolSlicePtr().(slice) |
| 64 | |
| 65 | // value to pointer value |
| 66 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 67 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testBoolscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testBool., *pointer) |
| 68 | |
| 69 | // slice of values to slice of pointers to value |
| 70 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, 1, len(sliceOfPointers)) |
| 71 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, sliceOfPointers[0] != nil, "Pointer should have value") |
| 72 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testBoolscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testBool., *sliceOfPointers[0]) |
| 73 | } |
| 74 | |
| 75 | func TestInt32Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestInt32Ptr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 76 | pointer := Int32Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Int32Ptr().(testInt32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testInt32.) |
| 77 | slice := []int32{testInt32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testInt32.} |
| 78 | sliceOfPointers := Int32SlicePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Int32SlicePtr().(slice) |
| 79 | |
| 80 | // value to pointer value |
| 81 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 82 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testInt32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testInt32., *pointer) |
| 83 | |
| 84 | // slice of values to slice of pointers to value |
| 85 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, 1, len(sliceOfPointers)) |
| 86 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, sliceOfPointers[0] != nil, "Pointer should have value") |
| 87 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testInt32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testInt32., *sliceOfPointers[0]) |
| 88 | } |
| 89 | |
| 90 | func TestInt64Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestInt64Ptr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 91 | pointer := Int64Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Int64Ptr().(testInt64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testInt64.) |
| 92 | slice := []int64{testInt64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testInt64.} |
| 93 | sliceOfPointers := Int64SlicePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Int64SlicePtr().(slice) |
| 94 | |
| 95 | // value to pointer value |
| 96 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 97 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testInt64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testInt64., *pointer) |
| 98 | |
| 99 | // slice of values to slice of pointers to value |
| 100 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, 1, len(sliceOfPointers)) |
| 101 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, sliceOfPointers[0] != nil, "Pointer should have value") |
| 102 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testInt64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testInt64., *sliceOfPointers[0]) |
| 103 | } |
| 104 | |
| 105 | func TestUint32Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestUint32Ptr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 106 | pointer := Uint32Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Uint32Ptr().(testUInt32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testUInt32.) |
| 107 | slice := []uint32{testUInt32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testUInt32.} |
| 108 | sliceOfPointers := Uint32SlicePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Uint32SlicePtr().(slice) |
| 109 | |
| 110 | // value to pointer value |
| 111 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 112 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testUInt32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testUInt32., *pointer) |
| 113 | |
| 114 | // slice of values to slice of pointers to value |
| 115 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, 1, len(sliceOfPointers)) |
| 116 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, sliceOfPointers[0] != nil, "Pointer should have value") |
| 117 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testUInt32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testUInt32., *sliceOfPointers[0]) |
| 118 | } |
| 119 | |
| 120 | func TestUint64Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestUint64Ptr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 121 | pointer := Uint64Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Uint64Ptr().(testUInt64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testUInt64.) |
| 122 | slice := []uint64{testUInt64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testUInt64.} |
| 123 | sliceOfPointers := Uint64SlicePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Uint64SlicePtr().(slice) |
| 124 | |
| 125 | // value to pointer value |
| 126 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 127 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testUInt64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testUInt64., *pointer) |
| 128 | |
| 129 | // slice of values to slice of pointers to value |
| 130 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, 1, len(sliceOfPointers)) |
| 131 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, sliceOfPointers[0] != nil, "Pointer should have value") |
| 132 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testUInt64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testUInt64., *sliceOfPointers[0]) |
| 133 | } |
| 134 | |
| 135 | func TestFloat32Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestFloat32Ptr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 136 | pointer := Float32Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Float32Ptr().(testFloat32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testFloat32.) |
| 137 | slice := []float32{testFloat32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testFloat32.} |
| 138 | sliceOfPointers := Float32SlicePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Float32SlicePtr().(slice) |
| 139 | |
| 140 | // value to pointer value |
| 141 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 142 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testFloat32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testFloat32., *pointer) |
| 143 | |
| 144 | // slice of values to slice of pointers to value |
| 145 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, 1, len(sliceOfPointers)) |
| 146 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, sliceOfPointers[0] != nil, "Pointer should have value") |
| 147 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testFloat32scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testFloat32., *sliceOfPointers[0]) |
| 148 | } |
| 149 | |
| 150 | func TestFloat64Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestFloat64Ptr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 151 | pointer := Float64Ptrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Float64Ptr().(testFloat64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testFloat64.) |
| 152 | slice := []float64{testFloat64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testFloat64.} |
| 153 | sliceOfPointers := Float64SlicePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/Float64SlicePtr().(slice) |
| 154 | |
| 155 | // value to pointer value |
| 156 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 157 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testFloat64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testFloat64., *pointer) |
| 158 | |
| 159 | // slice of values to slice of pointers to value |
| 160 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, 1, len(sliceOfPointers)) |
| 161 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, sliceOfPointers[0] != nil, "Pointer should have value") |
| 162 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testFloat64scip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testFloat64., *sliceOfPointers[0]) |
| 163 | } |
| 164 | |
| 165 | func TestDurationPtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestDurationPtr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 166 | pointer := TimeDurationPtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TimeDurationPtr().(testDurationscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testDuration.) |
| 167 | |
| 168 | // value to pointer value |
| 169 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 170 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testDurationscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testDuration., *pointer) |
| 171 | } |
| 172 | |
| 173 | func TestTimePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestTimePtr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 174 | pointer := TimePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TimePtr().(testTimescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testTime.) |
| 175 | |
| 176 | // value to pointer value |
| 177 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 178 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testTimescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testTime., *pointer) |
| 179 | } |
| 180 | |
| 181 | func TestSizePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/TestSizePtr().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) { |
| 182 | pointer := SizePtrscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/SizePtr().(testSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testSize.) |
| 183 | |
| 184 | // value to pointer value |
| 185 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Assertscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Assert().(t, pointer != nil, "Pointer should have value") |
| 186 | testhelpersscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/.Equalsscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/internal/testhelpers`/Equals().(t, testSizescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/scw`/testSize., *pointer) |
| 187 | } |