Skip to content

Commit 1b480d2

Browse files
Christopher Olstontensorflower-gardener
authored andcommitted
Adds a warning about not using our EqualsProto comparator with proto maps.
Change: 117158678
1 parent 5352f24 commit 1b480d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tensorflow_serving/test_util/test_util.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ T CreateProto(const string& textual_proto);
3939
string TestSrcDirPath(const string& relative_path);
4040

4141
// Simple implementation of a proto matcher comparing string representations.
42+
//
43+
// IMPORTANT: Only use this for protos whose textual representation is
44+
// deterministic (that may not be the case for the map collection type).
4245
class ProtoStringMatcher {
4346
public:
4447
explicit ProtoStringMatcher(const string& expected);

0 commit comments

Comments
 (0)