package couchdb import ( "os" "testing" ) var ( SecretUsernameData = []byte("SecretUsername") SecretPasswordData = []byte("SecretPassword") SecretCookieData = []byte("SecretCookie") SecretURIData = []byte("SecretURI") SecretDBNameData = []byte("SecretDBName") SecretAdminsIniData []byte ) func TestMain(m *testing.M) { hashed, _ := pbkdf2Hash(SecretPasswordData) SecretAdminsIniData = toAdminIni(string(SecretUsernameData), hashed) os.Exit(m.Run()) }