package http import "testing" func TestUserinfo_Set(t *testing.T) { ui := &Userinfo{} ui.Set("name", "xxx") ui.Set("lost", "xxx") if ui.Get("lost") != "xxx" { t.Error("error") } }