github.com/vchain-us/vcn@v0.9.11-0.20210921212052-a2484d23c0b3/pkg/api/organisation_test.go (about)

     1  /*
     2   * Copyright (c) 2018-2020 vChain, Inc. All Rights Reserved.
     3   * This software is released under GPL3.
     4   * The full license information can be found under:
     5   * https://www.gnu.org/licenses/gpl-3.0.en.html
     6   *
     7   */
     8  
     9  package api
    10  
    11  import (
    12  	"testing"
    13  
    14  	"github.com/stretchr/testify/assert"
    15  )
    16  
    17  func TestBlockchainOrganisation(t *testing.T) {
    18  	var bo *BlockchainOrganisation
    19  
    20  	// Nil
    21  	assert.Empty(t, bo.OwnerID())
    22  	assert.Len(t, bo.MembersIDs(), 0)
    23  
    24  	bo = &BlockchainOrganisation{}
    25  
    26  	// Zero value
    27  	assert.Empty(t, bo.OwnerID())
    28  	assert.Len(t, bo.MembersIDs(), 0)
    29  }