package main import "testing" func TestKey(t *testing.T) { k := Key() if len(k) != 32 { t.Error("expected a string of 32 chars") } }