[GODRIVER-2005] Use assert in documentation examples Created: 11/May/21  Updated: 06/Dec/23  Resolved: 02/Nov/23

Status: Closed
Project: Go Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: 2.0.0, 1.13.0, 1.13.1

Type: Improvement Priority: Minor - P4
Reporter: Benji Rewis (Inactive) Assignee: Matt Dale
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

We currently use the require library in examples/documentation_examples/examples.go. We should use assert.



 Comments   
Comment by Githook User [ 02/Nov/23 ]

Author:

{'name': 'Steven Silvester', 'email': 'steven.silvester@ieee.org', 'username': 'blink1073'}

Message: GODRIVER-2005 [master] - Replace "require" library with "assert" in documentation examples (#1441)

Co-authored-by: Lokesh Kumar <lkumar94@gmail.com>
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/405a0940efe4211806b79f3f067ed89115118dd5

Comment by Matt Dale [ 21/Oct/23 ]

Community PR: https://github.com/mongodb/mongo-go-driver/pull/1438

Generated at Thu Feb 08 08:37:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.