[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:
ASSERT_EQUALS("one","one");

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.


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