Home
last modified time | relevance | path

Searched refs:val (Results 1 - 25 of 234) sorted by relevance

12345678910

/3.0.3-GA/ep-engine/tests/module_tests/
H A Dhrtime_test.cc25 hrtime_t val = 0; in main() local
26 cb_assert(hrtime2text(val) == std::string("0 ns")); in main()
27 val = 9; in main()
28 cb_assert(hrtime2text(val) == std::string("9 ns")); in main()
29 val = 99; in main()
30 cb_assert(hrtime2text(val) == std::string("99 ns")); in main()
31 val = 999; in main()
32 cb_assert(hrtime2text(val) == std::string("999 ns")); in main()
33 val = 9999; in main()
34 cb_assert(hrtime2text(val) in main()
[all...]
/3.0.3-GA/moxi/src/
H A Dcheck_util.c12 uint32_t val; in START_TEST() local
13 fail_unless(safe_strtoul("123", &val), "Failed parsing 123"); in START_TEST()
14 fail_unless(val == 123, "Didn't parse 123 to 123"); in START_TEST()
15 fail_unless(safe_strtoul("+123", &val), "Failed parsing +123"); in START_TEST()
16 fail_unless(val == 123, "Didn't parse +123 to 123"); in START_TEST()
17 fail_if(safe_strtoul("", &val), "Unexpectedly parsed an empty string."); in START_TEST()
18 fail_if(safe_strtoul("123BOGUS", &val), "Parsed 123BOGUS"); in START_TEST()
20 assert(!safe_strtoul("92837498237498237498029383", &val)); /* out of range */ in START_TEST()
25 fail_unless(safe_strtoul("4294967295", &val), "Failed parsing 4294967295"); in START_TEST()
26 fail_unless(val in START_TEST()
36 uint64_t val; START_TEST() local
61 int64_t val; START_TEST() local
95 int32_t val; START_TEST() local
[all...]
H A Dtestapp.c166 uint32_t val; in test_safe_strtoul() local
167 assert(safe_strtoul("123", &val)); in test_safe_strtoul()
168 assert(val == 123); in test_safe_strtoul()
169 assert(safe_strtoul("+123", &val)); in test_safe_strtoul()
170 assert(val == 123); in test_safe_strtoul()
171 assert(!safe_strtoul("", &val)); /* empty */ in test_safe_strtoul()
172 assert(!safe_strtoul("123BOGUS", &val)); /* non-numeric */ in test_safe_strtoul()
174 assert(!safe_strtoul("92837498237498237498029383", &val)); // out of range in test_safe_strtoul()
178 assert(safe_strtoul("4294967295", &val)); /* 2**32 - 1 */ in test_safe_strtoul()
179 assert(val in test_safe_strtoul()
189 uint64_t val; test_safe_strtoull() local
207 int64_t val; test_safe_strtoll() local
235 int32_t val; test_safe_strtol() local
338 int32_t val; start_server() local
348 int32_t val; start_server() local
[all...]
H A Dcproxy_config.c622 char *val = key_val; in cproxy_parse_behavior_key_val_str() local
623 cproxy_parse_behavior_key_val(key, val, behavior); in cproxy_parse_behavior_key_val_str()
627 /** Note: the key and val param buffers are modified.
630 char *val, in cproxy_parse_behavior_key_val()
639 val != NULL) { in cproxy_parse_behavior_key_val()
641 val = trimstr(val); in cproxy_parse_behavior_key_val()
644 ok = safe_strtoul(val, &behavior->cycle); in cproxy_parse_behavior_key_val()
647 ok = safe_strtoul(val, &behavior->downstream_max); in cproxy_parse_behavior_key_val()
649 ok = safe_strtoul(val, in cproxy_parse_behavior_key_val()
629 cproxy_parse_behavior_key_val(char *key, char *val, proxy_behavior *behavior) cproxy_parse_behavior_key_val() argument
919 cproxy_dump_behavior_stderr(const void *dump_opaque, const char *prefix, const char *key, const char *val) cproxy_dump_behavior_stderr() argument
[all...]
/3.0.3-GA/healthchecker/Cheetah/
H A DCacheStore.py6 set(key, val, time=0)
8 add(key, val, time=0)
10 replace(key, val, time=0)
12 get(key, val)
13 returns val or raises a KeyError
24 def set(self, key, val, time=None):
27 def add(self, key, val, time=None):
30 def replace(self, key, val, time=None):
43 def set(self, key, val, time=0):
44 self._data[key] = (val, tim
[all...]
H A DFilters.py25 def filter(self, val, encoding=None, str=str, **kw):
29 if val is None:
31 if isinstance(val, unicode):
33 return val
36 return unicode(val)
40 return str(val)
120 def filter(self, val, **kw):
123 output = super(MaxLen, self).filter(val, **kw)
131 def filter(self, val, **kw):
132 s = super(WebSafe, self).filter(val, **k
[all...]
H A DSettingsManager.py31 for key, val in dict2.iteritems():
32 if key in dict1 and isinstance(val, dict) and isinstance(dict1[key], dict):
33 dict1[key] = mergeNestedDictionaries(dict1[key], val)
35 dict1[key] = val
157 for key, val in subDict.items():
159 if val.lower().startswith('python:'):
160 subDict[key] = eval(val[7:], {}, {})
161 if val.lower() == 'none':
163 if val.lower() == 'true':
165 if val
[all...]
/3.0.3-GA/couchdbx-app/Couchbase Server/
H A Ddictionary.c134 d->val = (char **)calloc(size, sizeof(char*)); in dictionary_new()
157 if (d->val[i]!=NULL) in dictionary_del()
158 free(d->val[i]); in dictionary_del()
160 free(d->val); in dictionary_del()
194 return d->val[i] ; in dictionary_get()
206 @param val Value to add.
213 It is Ok to provide a NULL value for val, but NULL values for the dictionary
227 int dictionary_set(dictionary * d, const char * key, const char * val) in dictionary_set() argument
244 if (d->val[i]!=NULL) in dictionary_set()
245 free(d->val[ in dictionary_set()
370 char * val ; main() local
[all...]
/3.0.3-GA/moxi/t/
H A Dmoxi_mock_auth.py50 val="\0TheUser\0ThePassword"))
53 val='Authenticated'))
82 val="\0TheUser\0ThePassword"))
85 val='Authenticated'))
103 val = "12345"
106 self.client_send('set simpleSet %d %d %d\r\n' % (flg, exp, len(val)))
107 self.client_send(val + '\r\n')
110 val="\0TheUser\0ThePassword"))
113 val='Authenticated'))
116 val
[all...]
H A Dmc_bin_client.py51 def _sendCmd(self, cmd, key, val, opaque, extraHeader='', cas=0):
55 len(key) + len(extraHeader) + len(val), opaque, cas)
56 self.s.send(msg + extraHeader + key + val)
83 def _doCmd(self, cmd, key, val, extraHeader='', cas=0):
86 self._sendCmd(cmd, key, val, opaque, extraHeader, cas)
89 def _mutate(self, cmd, key, exp, flags, cas, val):
90 return self._doCmd(cmd, key, val, struct.pack(SET_PKT_FMT, flags, exp),
93 def _cat(self, cmd, key, cas, val):
94 return self._doCmd(cmd, key, val, '', cas)
103 something, cas, val
[all...]
H A Dmoxi_multitenancy.py48 val="PLAIN")
66 val="Auth failure")
84 val='123')
87 val="Auth failure")
109 val="\0bucket0\0passwordBad0");
112 val="Auth failure")
125 val="\0bucket0\0passwordBad0");
128 val="Auth failure")
141 val="\0\0somePassword");
144 val
[all...]
H A Dmoxi_multitenancy_default.py45 val="\0" + user + "\0" + password);
47 val="Authenticated")
70 def doTestSimpleSet(self, flg=1234, exp=0, val='9876', user='default', password=''):
74 val=val))
81 val=val))
96 val="\0userBad0\0passwordBad0");
99 val="Auth failure")
109 val
[all...]
H A Dmoxi_mock_b2b.py104 def doTestSimpleSet(self, flg=0, exp=0, val='1'):
109 val=val))
112 val=val))
123 self.doTestSimpleSet(flg=1234, exp=4321, val='')
146 val='1'))
149 val='1'))
165 val='hello')
183 val
[all...]
/3.0.3-GA/healthchecker/
H A Danalyzer.py120 for val in values:
121 if val[0] == "error":
123 for node in val[1]:
126 if val[0] == "warn":
128 for node in val[1]:
131 for val in values:
132 if val[0] == "variance" or val[0] == "error" or val[0] == "warn":
134 elif val[
[all...]
/3.0.3-GA/testrunner/pytests/sdk_client_tests/
H A Dsdk_client_tests.py26 val, flag, cas = client.get("1")
27 self.log.info("val={0},flag={1},cas={2}".format(val, flag, cas))
30 val, flag, cas = client.get("1")
31 self.assertTrue(val == "{1:3}")
32 self.log.info("val={0},flag={1},cas={2}".format(val, flag, cas))
35 val, flag, cas = client.get("key")
36 self.assertTrue(val == 5)
37 self.log.info("val
[all...]
/3.0.3-GA/ep-engine/management/
H A Dmc_bin_server.py69 val=data[keylen+hdrSize:]
70 return hdr, key, val
84 hdrs, key, val=self._splitKeys(EXTRA_HDR_FMTS.get(cmd, ''),
88 cas, val)
123 val=self.__lookup(key)
124 if val:
125 rv = 0, id(val), struct.pack(
126 memcacheConstants.GET_RES_FMT, val[0]) + str(val[2])
133 val
[all...]
H A Dcbepctl43 def set_param(mc, type, key, val):
54 if key == 'tap_throttle_queue_cap' and val == 'infinite':
55 val = '-1'
58 if val.endswith("%"):
59 _x_ = (val[:len(val)-1])
61 print 'Error: Invalid parameter %s' % val
64 print 'Error: Bad parameter %s' % val
67 val = str(int(float(_x_)*(_quota_)/100))
70 mc.set_param(key, val, engine_para
[all...]
H A Dcbadm-tap-registration67 val = ''
72 val = data[extlen+keylen:]
73 return cmd, opaque, cas, vbucketId, key, ext, val
77 val = []
81 val.append(struct.pack(memcacheConstants.TAP_FLAG_TYPES[op],
85 val.append(struct.pack(">HHQ", opts[op][0], opts[op][1], opts[op][2]))
87 val.append(opts[op])
88 return struct.pack(">I", header), ''.join(val)
102 ext, val = encodeTAPConnectOpts({
111 mc._sendCmd(memcacheConstants.CMD_TAP_CONNECT, tap_name, val,
[all...]
/3.0.3-GA/testrunner/lib/
H A Dmc_bin_server.py70 val = data[keylen + hdrSize:]
71 return hdr, key, val
85 hdrs, key, val = self._splitKeys(EXTRA_HDR_FMTS.get(cmd, ''),
89 cas, val)
125 val = self.__lookup(key)
126 if val:
127 rv = 0, id(val), struct.pack(
128 memcacheConstants.GET_RES_FMT, val[0]) + str(val[2])
135 val
[all...]
/3.0.3-GA/couchstore/src/views/
H A Dcompaction.c31 view_id_btree_value_t *val = NULL; in view_id_btree_filter() local
34 errcode = decode_view_id_btree_value(v->buf, v->size, &val); in view_id_btree_filter()
40 ret = is_bit_set(bm, val->partition); in view_id_btree_filter()
43 free_view_id_btree_value(val); in view_id_btree_filter()
52 view_btree_value_t *val = NULL; in view_btree_filter() local
55 errcode = decode_view_btree_value(v->buf, v->size, &val); in view_btree_filter()
61 ret = is_bit_set(bm, val->partition); in view_btree_filter()
64 free_view_btree_value(val); in view_btree_filter()
/3.0.3-GA/couchbase-cli/
H A Dcbworkloadgen76 val = getattr(opts, key, None)
77 if val is not None:
79 val = int(val)
80 gen_str += gen_opts[key] + "=" + str(val) + ","
85 val = getattr(opts, key, None)
86 if val:
87 sink_str += sink_opts[key] + val
90 val = getattr(opts, key, None)
91 if val
[all...]
/3.0.3-GA/ep-engine/src/
H A Dconfiguration.cc49 if (iter->second.val.v_string) { in getString()
50 return std::string(iter->second.val.v_string); in getString()
64 return iter->second.val.v_bool; in getBool()
76 return iter->second.val.v_float; in getFloat()
88 return iter->second.val.v_size; in getInteger()
100 return iter->second.val.v_ssize; in getSignedInteger()
113 if (iter->second.val.v_bool) { in operator <<()
120 line << iter->second.val.v_string; in operator <<()
123 line << iter->second.val.v_size; in operator <<()
126 line << iter->second.val in operator <<()
274 addValueChangedListener(const std::string &key, ValueChangedListener *val) addValueChangedListener() argument
[all...]
/3.0.3-GA/moxi/t/lib/
H A DMemcachedTest.pm38 my ($sock_opts, $key, $val, $msg) = @_;
43 my $dval = defined $val ? "'$val'" : "<undef>";
47 if (! defined $val) {
54 my $len = length($val);
56 my $expected = "VALUE $key $expect_flags $len\r\n$val\r\nEND\r\n";
71 my $val;
85 read $sock, $val , $len;
90 return ($identifier,$val);
96 my ($sock_opts, $identifier, $key, $val,
[all...]
/3.0.3-GA/testrunner/pysystests/app/
H A Dsystest_manager.py462 key, val = op.split(':')
464 params['queries_per_sec'] = int(val)
466 params['ddoc'] = str(val)
468 params['view'] = str(val)
470 params['bucket'] = str(val)
472 params['password'] = str(val)
474 val = [str(v) for v in val.split(' ')]
475 params['include_filters'] = val
477 params['exclude_filters'] = str(val)
[all...]
/3.0.3-GA/couchstore/tests/btree_purge/
H A Dpurge.c108 int *val; in evenodd_reduce() local
114 val = (int *) leaflist->key.buf; in evenodd_reduce()
115 if (*val & 0x1) { in evenodd_reduce()
163 int *val; in uniq_reduce() local
167 val = (int *) dst; in uniq_reduce()
168 val[0] = count; in uniq_reduce()
173 val = (int *) leaflist->data.buf; in uniq_reduce()
174 if (!map[*val]) { in uniq_reduce()
175 map[*val] = 1; in uniq_reduce()
182 val in uniq_reduce()
202 int *val; uniq_rereduce() local
248 keepall_purge_kv(const sized_buf *key, const sized_buf *val, void *ctx) keepall_purge_kv() argument
265 all_purge_kv(const sized_buf *key, const sized_buf *val, void *ctx) all_purge_kv() argument
293 evenodd_purge_kv(const sized_buf *key, const sized_buf *val, void *ctx) evenodd_purge_kv() argument
310 evenodd_stop_purge_kv(const sized_buf *key, const sized_buf *val, void *ctx) evenodd_stop_purge_kv() argument
348 skip_purge_kv(const sized_buf *key, const sized_buf *val, void *ctx) skip_purge_kv() argument
392 int *val = (int *) v->buf; check_odd2_callback() local
433 int *val = (int *) v->buf; check_skiprange_callback() local
[all...]

Completed in 58 milliseconds

12345678910