Skip to content
Snippets Groups Projects
Select Git revision
  • e4aeda3bc9030c89d477eb0698134aae35a49d6f
  • master default
  • notifications_test_ndf
  • main_ud_local_ndf
  • crust-integration
  • new-client
  • internal_build
  • FE-1054_test_net_ndf
  • FE-1053_change_retry_behavior
  • app_modularization_refactor
  • FE_1020_remove_version_check
  • FE-992_android_migration
  • XX-4094_add_fact_panic
  • FE-990_retry_reset_request
  • development
  • 2.92
  • 2.9
  • 2.8
  • 2.7
  • 2.5
  • 2.3
  • 2.2
  • 2.1
  • 2.04
  • 2.03
  • 2.02
26 results

settings.gradle.kts

Blame
  • status_test.go 848 B
    package key
    
    // Testing file for the status.go functions
    
    import "testing"
    
    // Test that Status_String returns the right strings for a status
    func Test_Status_String(t *testing.T) {
    	if Status(Active).String() != "Active" {
    		t.Errorf("Testing Active returned mismatch.\r\tGot: %s\r\tExpected: %s", Status(Active).String(), "Active")
    	}
    	if Status(RekeyNeeded).String() != "Rekey Needed" {
    		t.Errorf("Testing RekeyNeeded returned mismatch.\r\tGot: %s\r\tExpected: %s", Status(RekeyNeeded).String(), "Rekey Needed")
    	}
    	if Status(Empty).String() != "Empty" {
    		t.Errorf("Testing Empty returned mismatch.\r\tGot: %s\r\tExpected: %s", Status(Empty).String(), "Empty")
    	}
    	if Status(RekeyEmpty).String() != "Rekey Empty" {
    		t.Errorf("Testing RekeyEmpty returned mismatch.\r\tGot: %s\r\tExpected: %s", Status(RekeyEmpty).String(), "Rekey Empty")
    	}
    }