diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_match_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_match_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_match_test.cpp b/src/mongo/db/pipeline/document_source_match_test.cpp index 84a3ac6c01c..4e14a990c7a 100644 --- a/src/mongo/db/pipeline/document_source_match_test.cpp +++ b/src/mongo/db/pipeline/document_source_match_test.cpp @@ -128,6 +128,10 @@ TEST_F(DocumentSourceMatchTest, RedactSafePortion) { assertExpectedRedactSafePortion("{a: {$_internalSchemaType: 2}}", "{}"); + // In some cases, $_internalExprEq could be redact-safe (just like a regular $eq match + // expression), but this optimization is not yet implemented. + assertExpectedRedactSafePortion("{a: {$_internalExprEq: 2}}", "{}"); + // Combinations assertExpectedRedactSafePortion("{a:1, b: 'asdf'}", "{a:1, b: 'asdf'}"); |