Home
last modified time | relevance | path

Searched refs:bson_size (Results 1 – 25 of 60) sorted by relevance

123

/dports/databases/libmongo-client/libmongo-client-libmongo-client-0.1.6.3/tests/unit/bson/
H A Dbson_new_from_data.c16 ok (bson_new_from_data (NULL, bson_size (orig)) == NULL, in test_bson_new_from_data()
26 bson_size (orig) - 1)) != NULL, in test_bson_new_from_data()
28 cmp_ok (bson_size (new), "==", -1, in test_bson_new_from_data()
34 cmp_ok (bson_size (orig), "==", bson_size (new), in test_bson_new_from_data()
39 bson_size (orig)) == 0, in test_bson_new_from_data()
H A Dbson_append_symbol.c17 cmp_ok (bson_size (b), "==", 22, "BSON symbol element size check"); in test_bson_symbol()
21 bson_size (b)) == 0, in test_bson_symbol()
33 cmp_ok (bson_size (b), "==", 30, "BSON symbol element size check, #2"); in test_bson_symbol()
37 bson_size (b)) == 0, in test_bson_symbol()
52 cmp_ok (bson_size (b), "==", 5, in test_bson_symbol()
H A Dbson_append_js_code.c19 cmp_ok (bson_size (b), "==", 56, "BSON javascript element size check"); in test_bson_js_code()
25 bson_size (b)) == 0, in test_bson_js_code()
37 cmp_ok (bson_size (b), "==", 40, "BSON javascript element size check, #2"); in test_bson_js_code()
42 bson_size (b)) == 0, in test_bson_js_code()
57 cmp_ok (bson_size (b), "==", 5, in test_bson_js_code()
H A Dbson_append_string.c17 cmp_ok (bson_size (b), "==", 22, "BSON string element size check"); in test_bson_string()
21 bson_size (b)) == 0, in test_bson_string()
33 cmp_ok (bson_size (b), "==", 30, "BSON string element size check, #2"); in test_bson_string()
37 bson_size (b)) == 0, in test_bson_string()
52 cmp_ok (bson_size (b), "==", 5, in test_bson_string()
H A Dbson_append_js_code_w_scope.c24 cmp_ok (bson_size (b), "==", 51, "BSON javascript w/ element size check"); in test_bson_int64()
30 bson_size (b)) == 0, in test_bson_int64()
43 cmp_ok (bson_size (b), "==", 51, "BSON javascript w/ element size check"); in test_bson_int64()
49 bson_size (b)) == 0, in test_bson_int64()
70 cmp_ok (bson_size (b), "==", 5, in test_bson_int64()
H A Dbson_reset.c12 cmp_ok (bson_size (b), "!=", -1, in test_bson_reset()
15 cmp_ok (bson_size (b), "==", -1, in test_bson_reset()
18 cmp_ok (bson_size (b), "==", 5, in test_bson_reset()
H A Dbson_append_null.c17 cmp_ok (bson_size (b), "==", 11, "BSON NULL element size check"); in test_bson_null()
20 bson_size (b)) == 0, in test_bson_null()
31 cmp_ok (bson_size (b), "==", 5, in test_bson_null()
H A Dbson_append_utc_datetime.c17 cmp_ok (bson_size (b), "==", 19, "BSON UTC datetime element size check"); in test_bson_utc_datetime()
21 bson_size (b)) == 0, in test_bson_utc_datetime()
32 cmp_ok (bson_size (b), "==", 5, in test_bson_utc_datetime()
H A Dbson_append_timestamp.c17 cmp_ok (bson_size (b), "==", 17, "BSON timestamp element size check"); in test_bson_timestamp()
21 bson_size (b)) == 0, in test_bson_timestamp()
32 cmp_ok (bson_size (b), "==", 5, in test_bson_timestamp()
H A Dbson_append_double.c17 cmp_ok (bson_size (b), "==", 21, "BSON double element size check");
21 bson_size (b)) == 0,
32 cmp_ok (bson_size (b), "==", 5,
H A Dbson_append_int32.c17 cmp_ok (bson_size (b), "==", 14, "BSON int32 element size check"); in test_bson_int32()
20 bson_size (b)) == 0, in test_bson_int32()
31 cmp_ok (bson_size (b), "==", 5, in test_bson_int32()
H A Dbson_append_int64.c17 cmp_ok (bson_size (b), "==", 18, "BSON int64 element size check");
21 bson_size (b)) == 0,
32 cmp_ok (bson_size (b), "==", 5,
H A Dbson_append_boolean.c19 cmp_ok (bson_size (b), "==", 20, "BSON boolean element size check");
23 bson_size (b)) == 0,
34 cmp_ok (bson_size (b), "==", 5,
H A Dbson_append_regexp.c17 cmp_ok (bson_size (b), "==", 23, "BSON regex element size check"); in test_bson_regex()
21 bson_size (b)) == 0, in test_bson_regex()
36 cmp_ok (bson_size (b), "==", 5, in test_bson_regex()
H A Dbson_append_oid.c17 cmp_ok (bson_size (b), "==", 22, "BSON OID element size check");
21 bson_size (b)) == 0,
34 cmp_ok (bson_size (b), "==", 5,
H A Dbson_append_binary.c21 cmp_ok (bson_size (b), "==", 51, "BSON binary element size check"); in test_bson_binary()
27 bson_size (b)) == 0, in test_bson_binary()
46 cmp_ok (bson_size (b), "==", 5, in test_bson_binary()
H A Dbson_append_array.c30 cmp_ok (bson_size (b), "==", 58, "BSON array element size check");
36 bson_size (b)) == 0,
55 cmp_ok (bson_size (b), "==", 5,
H A Dbson_append_document.c30 cmp_ok (bson_size (b), "==", 69, "BSON document element size check"); in test_bson_document()
37 bson_size (b)) == 0, in test_bson_document()
57 cmp_ok (bson_size (b), "==", 5, in test_bson_document()
H A Dbson_build_full.c50 cmp_ok (bson_size (b), "==", bson_size (o),
53 ok (memcmp (bson_data (b), bson_data (o), bson_size (b)) == 0,
H A Dbson_cursor_get_javascript_w_scope.c40 cmp_ok (bson_size (scope), "==", bson_size (valid), in test_bson_cursor_get_javascript_w_scope()
43 bson_size (scope)) == 0, in test_bson_cursor_get_javascript_w_scope()
/dports/databases/libmongo-client/libmongo-client-libmongo-client-0.1.6.3/src/
H A Dmongo-wire.c217 if (bson_size (selector) < 0 || in mongo_wire_cmd_update()
218 bson_size (update) < 0) in mongo_wire_cmd_update()
229 p->data_size = bson_size (selector) + bson_size (update) + in mongo_wire_cmd_update()
270 if (bson_size (docs[i]) <= 0) in mongo_wire_cmd_insert_n()
275 dsize += bson_size (docs[i]); in mongo_wire_cmd_insert_n()
292 pos += bson_size (docs[i]); in mongo_wire_cmd_insert_n()
319 if (bson_size (d) < 0) in mongo_wire_cmd_insert()
350 if (bson_size (query) < 0 || (sel && bson_size (sel) < 0)) in mongo_wire_cmd_query()
377 bson_size (query)); in mongo_wire_cmd_query()
438 if (bson_size (sel) < 0) in mongo_wire_cmd_delete()
[all …]
/dports/databases/libmongo-client/libmongo-client-libmongo-client-0.1.6.3/docs/tutorial/examples/
H A Dtut_bson_build.c59 if (bson_size (b_new) != bson_size (b_builder) || in main()
60 bson_size (b_new) != bson_size (b_builder_full)) in main()
66 if (memcmp (bson_data (b_new), bson_data (b_builder), bson_size (b_new)) != 0 || in main()
67 memcmp (bson_data (b_new), bson_data (b_builder_full), bson_size (b_new)) != 0) in main()
/dports/databases/libmongo-client/libmongo-client-libmongo-client-0.1.6.3/tests/func/mongo/sync/
H A Df_sync_max_insert_size.c31 mongo_sync_conn_set_max_insert_size (conn, bson_size (b1) + in test_func_mongo_sync_max_insert_size()
32 bson_size (b3) + 1); in test_func_mongo_sync_max_insert_size()
51 mongo_sync_conn_set_max_insert_size (conn, bson_size (b1) + in test_func_mongo_sync_max_insert_size()
52 bson_size (b3) + 1); in test_func_mongo_sync_max_insert_size()
/dports/databases/libmongo-client/libmongo-client-libmongo-client-0.1.6.3/tests/func/bson/
H A Dhuge_doc.c28 ds1 = bson_size (b); in test_bson_huge_doc()
37 cmp_ok (bson_size (s), ">", ds1, in test_bson_huge_doc()
43 cmp_ok (bson_size (b), "==", ds1, in test_bson_huge_doc()
/dports/databases/libmongo-client/libmongo-client-libmongo-client-0.1.6.3/tests/libtap/
H A Dtest.c77 data_size += bson_size (b1) + bson_size (b2);
94 bson_data (b1), bson_size (b1));
95 memcpy (data + sizeof (mongo_reply_packet_header) + bson_size (b1),
96 bson_data (b2), bson_size (b2));

123