MCPcopy Create free account
hub / github.com/MG-RAST/Shock / addOptions

Method addOptions

shock-client/query.go:35–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (q *queryNode) addOptions() {
36 if limit != 0 {
37 q.values.Set("limit", strconv.Itoa(limit))
38 }
39 if offset != 0 {
40 q.values.Set("offset", strconv.Itoa(offset))
41 }
42 if (direction != "") && validateCV("direction", direction) {
43 q.values.Set("direction", direction)
44 }
45 if order != "" {
46 q.values.Set("order", order)
47 }
48 if distinct != "" {
49 q.distinct = true
50 q.values.Set("distinct", distinct)
51 }
52}

Callers 1

mainFunction · 0.80

Calls 2

validateCVFunction · 0.85
SetMethod · 0.65

Tested by

no test coverage detected