Skip to content
Snippets Groups Projects
Select Git revision
  • c7b8637e027ffcb86ac3922afec8d54f002753f1
  • main default protected
  • dev protected
  • hotfixes-oct-2022
  • refactor/avatar-cell
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1
  • 1.0.8
  • 1.0.7
  • 1.0.6
12 results

Package.resolved

Blame
  • E2E_test.go 653 B
    package params
    
    import "testing"
    
    func TestGetDefaultE2E(t *testing.T) {
    	if GetDefaultE2E().Type != Standard {
    		t.Errorf("GetDefaultE2E did not return Standard")
    	}
    }
    
    func TestSendType_String(t *testing.T) {
    	e := E2E{Type: Standard}
    	if e.Type.String() != "Standard" {
    		t.Errorf("Running String on Standard E2E type got %s", e.Type.String())
    	}
    
    	e = E2E{Type: KeyExchange}
    	if e.Type.String() != "KeyExchange" {
    		t.Errorf("Running String on KeyExchange E2E type got %s", e.Type.String())
    	}
    
    	e = E2E{Type: SendType(40)}
    	if e.Type.String() != "Unknown SendType 40" {
    		t.Errorf("Running String on unknown E2E type got %s", e.Type.String())
    	}
    }