Skip to content
Snippets Groups Projects
Select Git revision
  • b81e25ffce6e56d6947dfde0a652109bbab15ee1
  • release default protected
  • master protected
  • NationalTreasure/NotificationUpgrade
  • XX-4441
  • xx-4417/gw-poll-earliest-client-round
  • tls-websockets
  • hotfix/drain
  • hotfix/matcher
  • projects/crust_RELEASE
  • XX-4055/ChannelIdentityTracking
  • XX-4066/CrustUpgrade_MASTER
  • Ace/Huawei
  • hotfix/accumulate-notifs
  • XX-3564/TlsCipherSuite
  • hotfix/groupNotification
  • Anne/License-Update
  • hotfix/trustoldgatewaysonly
  • hotfix/notifications
  • notls
  • url-repo-rename
  • v0.0.4
  • v0.0.3
  • v0.0.2
  • v0.0.1
25 results

permissioningPoll_test.go

  • permissioningPoll_test.go 797 B
    ////////////////////////////////////////////////////////////////////////////////
    // Copyright © 2020 Privategrity Corporation                                   /
    //                                                                             /
    // All rights reserved.                                                        /
    ////////////////////////////////////////////////////////////////////////////////
    
    package mixmessages
    
    import "testing"
    
    func TestPermissioningPoll_GetActivity(t *testing.T) {
    	expected := uint32(45)
    	testRoundInfo := &PermissioningPoll{
    		Activity: expected,
    	}
    
    	received := testRoundInfo.GetActivity()
    
    	if received != expected {
    		t.Errorf("Received does not match expected for getter function! "+
    			"Expected: %+v \n\t"+
    			"Received: %+v", expected, received)
    	}
    }