MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / isRespUseRevTreeIDInstead

Function isRespUseRevTreeIDInstead

rest/utilities_testing_resttester.go:198–200  ·  view source on GitHub ↗

isRespUseRevTreeIDInstead returns true if the response indicates that a RevTree ID should be used instead of a CV for modifying a document in conflict.

(resp *TestResponse)

Source from the content-addressed store, hash-verified

196
197// isRespUseRevTreeIDInstead returns true if the response indicates that a RevTree ID should be used instead of a CV for modifying a document in conflict.
198func isRespUseRevTreeIDInstead(resp *TestResponse) bool {
199 return resp.Code == http.StatusBadRequest && strings.Contains(resp.BodyString(), "Cannot use CV to modify a document in conflict - resolve first with RevTree ID")
200}
201
202func (rt *RestTester) GetDatabaseRoot(dbname string) DatabaseRoot {
203 var dbroot DatabaseRoot

Callers 2

UpdateDocMethod · 0.85
DeleteDocMethod · 0.85

Calls 2

BodyStringMethod · 0.80
ContainsMethod · 0.65

Tested by

no test coverage detected