Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Feature/return cas #44

Merged
merged 6 commits into from
Oct 2, 2019
Merged

Feature/return cas #44

merged 6 commits into from
Oct 2, 2019

Conversation

hajnalandor
Copy link
Collaborator

#39

operations.go Outdated
@@ -12,22 +12,24 @@ import (

type writerF func(string, string, interface{}, int) (gocb.Cas, error)
type readerF func(string, string, interface{}, int) (gocb.Cas, error)
type CAS map[string]gocb.Cas
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to Cas

if err != nil || id == "" {
t.Fatal(err)
}
if len(cas) != 3 {
t.Error("error")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provide better error something like, t.Errorf("Cas should store 3 elements, instead of %d", len(cas)). We are writing these errors for people who possible won't know anything about the system.

if err != nil || id == "" {
t.Error("Missing error")
}
if len(cas) != 1 {
t.Error("error")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same error here

if err != nil || id == "" {
t.Error("Missing error")
}
if len(cas) != 1 {
t.Error("error")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same error here

if err != nil || id == "" {
t.Error("Missing error")
}
if len(cas) != 1 {
t.Error("error")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same error here

@PumpkinSeed PumpkinSeed merged commit 5b6becc into develop Oct 2, 2019
@PumpkinSeed PumpkinSeed deleted the feature/return-cas branch October 2, 2019 07:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants