Skip to content

Commit 5ea4430

Browse files
authored
Reorder start point for doc examples for consistency (#1532)
* reorder start point for doc examples for consistency
1 parent b34cd2b commit 5ea4430

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/libmongoc/tests/test-mongoc-sample-commands.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ test_example_3 (mongoc_database_t *db)
197197
}
198198
/* End Example 3 */
199199
ASSERT_COUNT (4, collection);
200-
/* Start Example 3 Post */
201200
done:
201+
/* Start Example 3 Post */
202202
bson_destroy (&reply);
203203
mongoc_bulk_operation_destroy (bulk);
204204
mongoc_collection_destroy (collection);
@@ -311,8 +311,8 @@ test_example_6 (mongoc_database_t *db)
311311
}
312312
/* End Example 6 */
313313
ASSERT_COUNT (5, collection);
314-
/* Start Example 6 Post */
315314
done:
315+
/* Start Example 6 Post */
316316
bson_destroy (&reply);
317317
mongoc_bulk_operation_destroy (bulk);
318318
mongoc_collection_destroy (collection);
@@ -579,8 +579,8 @@ test_example_14 (mongoc_database_t *db)
579579
}
580580
/* End Example 14 */
581581

582-
/* Start Example 14 Post */
583582
done:
583+
/* Start Example 14 Post */
584584
bson_destroy (&reply);
585585
mongoc_bulk_operation_destroy (bulk);
586586
mongoc_collection_destroy (collection);
@@ -816,8 +816,8 @@ test_example_20 (mongoc_database_t *db)
816816
}
817817
/* End Example 20 */
818818

819+
done:
819820
/* Start Example 20 Post */
820-
done:
821821
bson_destroy (&reply);
822822
mongoc_bulk_operation_destroy (bulk);
823823
mongoc_collection_destroy (collection);
@@ -1132,8 +1132,8 @@ test_example_29 (mongoc_database_t *db)
11321132
}
11331133
/* End Example 29 */
11341134

1135-
/* Start Example 29 Post */
11361135
done:
1136+
/* Start Example 29 Post */
11371137
bson_destroy (&reply);
11381138
mongoc_bulk_operation_destroy (bulk);
11391139
mongoc_collection_destroy (collection);
@@ -1383,8 +1383,8 @@ test_example_38 (mongoc_database_t *db)
13831383
}
13841384
/* End Example 38 */
13851385

1386-
/* Start Example 38 Post */
13871386
done:
1387+
/* Start Example 38 Post */
13881388
bson_destroy (&reply);
13891389
mongoc_bulk_operation_destroy (bulk);
13901390
mongoc_collection_destroy (collection);
@@ -1594,8 +1594,8 @@ test_example_42 (mongoc_database_t *db)
15941594
}
15951595
/* End Example 42 */
15961596

1597-
/* Start Example 42 Post */
15981597
done:
1598+
/* Start Example 42 Post */
15991599
bson_destroy (&reply);
16001600
mongoc_bulk_operation_destroy (bulk);
16011601
mongoc_collection_destroy (collection);
@@ -2092,8 +2092,8 @@ test_example_51 (mongoc_database_t *db)
20922092
}
20932093
/* End Example 51 */
20942094

2095-
/* Start Example 51 Post */
20962095
done:
2096+
/* Start Example 51 Post */
20972097
bson_destroy (&reply);
20982098
mongoc_bulk_operation_destroy (bulk);
20992099
mongoc_collection_destroy (collection);
@@ -2146,8 +2146,8 @@ test_example_52 (mongoc_database_t *db)
21462146
mongoc_cursor_destroy (cursor);
21472147
bson_destroy (filter);
21482148
}
2149-
/* Start Example 52 Post */
21502149
done:
2150+
/* Start Example 52 Post */
21512151
mongoc_collection_destroy (collection);
21522152
/* End Example 52 Post */
21532153
}
@@ -2204,8 +2204,8 @@ test_example_53 (mongoc_database_t *db)
22042204
mongoc_cursor_destroy (cursor);
22052205
bson_destroy (filter);
22062206
}
2207-
/* Start Example 53 Post */
22082207
done:
2208+
/* Start Example 53 Post */
22092209
mongoc_collection_destroy (collection);
22102210
/* End Example 53 Post */
22112211
}
@@ -2267,8 +2267,8 @@ test_example_54 (mongoc_database_t *db)
22672267
bson_destroy (opts);
22682268
bson_destroy (filter);
22692269
}
2270-
/* Start Example 54 Post */
22712270
done:
2271+
/* Start Example 54 Post */
22722272
mongoc_collection_destroy (collection);
22732273
/* End Example 54 Post */
22742274
}
@@ -2379,8 +2379,8 @@ test_example_55 (mongoc_database_t *db)
23792379
}
23802380
/* End Example 55 */
23812381
ASSERT_COUNT (5, collection);
2382-
/* Start Example 55 Post */
23832382
done:
2383+
/* Start Example 55 Post */
23842384
bson_destroy (&reply);
23852385
mongoc_bulk_operation_destroy (bulk);
23862386
mongoc_collection_destroy (collection);
@@ -2409,8 +2409,8 @@ test_example_57 (mongoc_database_t *db)
24092409
}
24102410
/* End Example 57 */
24112411
ASSERT_COUNT (3, collection);
2412-
/* Start Example 57 Post */
24132412
done:
2413+
/* Start Example 57 Post */
24142414
mongoc_collection_destroy (collection);
24152415
/* End Example 57 Post */
24162416
}
@@ -2437,8 +2437,8 @@ test_example_58 (mongoc_database_t *db)
24372437
}
24382438
/* End Example 58 */
24392439
ASSERT_COUNT (2, collection);
2440-
/* Start Example 58 Post */
24412440
done:
2441+
/* Start Example 58 Post */
24422442
mongoc_collection_destroy (collection);
24432443
/* End Example 58 Post */
24442444
}
@@ -2465,8 +2465,8 @@ test_example_56 (mongoc_database_t *db)
24652465
}
24662466
/* End Example 56 */
24672467
ASSERT_COUNT (0, collection);
2468-
/* Start Example 56 Post */
24692468
done:
2469+
/* Start Example 56 Post */
24702470
mongoc_collection_destroy (collection);
24712471
/* End Example 56 Post */
24722472
}

0 commit comments

Comments
 (0)