Skip to content
Snippets Groups Projects
Select Git revision
  • v1.20130909
  • master default protected
  • commit-alias
  • editor-modeline
  • commit-abbreviation
  • make-hooks-work-as-advertised
  • lyda-home-version
  • feature-aliases
  • git-version-bsd-fix
  • hook-changes
  • v1.20151229-1
  • v1.20151229
  • v1.20150502-1
  • v1.20150502
  • v1.20141026-manpage-static
  • v1.20141026-1
  • v1.20141026
  • v1.20141025-1
  • v1.20141025
  • v1.20141009-manpage-static
  • v1.20141009-1
  • v1.20141009
  • v1.20140508-1-bpo70+1
  • v1.20140508-1
  • v1.20140508-manpage-static
  • v1.20140508
  • v1.20140507
  • v1.20140313
  • v1.20131229-homebrew
  • v1.20131229-1-bpo60+1
30 results

README.md

Blame
  • util_test.go 302 B
    package lib
    
    import (
    	"reflect"
    	"testing"
    
    	"github.com/nsheridan/cashier/testdata"
    	"golang.org/x/crypto/ssh"
    )
    
    func TestGetPublicKey(t *testing.T) {
    	c, _, _, _, _ := ssh.ParseAuthorizedKey(testdata.Cert)
    	if !reflect.DeepEqual(GetPublicKey(c.(*ssh.Certificate)), testdata.Cert) {
    		t.Fail()
    	}
    }