[SERVER-6466] forbid comparisions of raw pointers in unittest framework Created: 16/Jul/12 Updated: 06/Dec/22 Resolved: 09/Apr/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | 2.2.0-rc0 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Eric Milkie | Assignee: | Backlog - Server Tooling and Methods (STM) (Inactive) |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | neweng, stm, tig-unittests | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Server Tooling & Methods
|
| Participants: |
| Description |
|
This usage should be prohibited at compile time: The type of the parameters is char[4]. Covering all size char arrays plus char pointers can be tricky when trying to produce an explicit specialization of a template. It may be easier to make function overloads for members in class ComparisonAssertion. |