github.com/blend/go-sdk@v1.20220411.3/ref/ref_test.go (about)

     1  /*
     2  
     3  Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package ref
     9  
    10  import (
    11  	"testing"
    12  	"time"
    13  
    14  	"github.com/blend/go-sdk/assert"
    15  )
    16  
    17  func TestRef(t *testing.T) {
    18  	assert := assert.New(t)
    19  
    20  	assert.NotNil(String("foo"))
    21  	assert.NotEmpty(Strings("foo", "bar"))
    22  
    23  	assert.NotNil(Bool(true))
    24  
    25  	assert.NotNil(Byte('b'))
    26  	assert.NotNil(Rune('b'))
    27  
    28  	assert.NotNil(Uint8(0))
    29  	assert.NotNil(Uint16(0))
    30  	assert.NotNil(Uint32(0))
    31  	assert.NotNil(Uint64(0))
    32  	assert.NotNil(Int8(0))
    33  	assert.NotNil(Int16(0))
    34  	assert.NotNil(Int32(0))
    35  	assert.NotNil(Int64(0))
    36  	assert.NotNil(Int(0))
    37  	assert.NotNil(Float32(0))
    38  	assert.NotNil(Float64(0))
    39  	assert.NotNil(Time(time.Time{}))
    40  	assert.NotNil(Duration(0))
    41  }