Skip to content

Commit

Permalink
Remove duplicated $expr tests (#3255)
Browse files Browse the repository at this point in the history
  • Loading branch information
chilagrow authored Aug 28, 2023
1 parent 62809bb commit 7457c98
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 306 deletions.
113 changes: 0 additions & 113 deletions integration/aggregate_query_compat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,124 +29,11 @@ func TestAggregateCompatMatchExpr(t *testing.T) {
bson.D{{"$match", bson.D{{"$expr", "$v"}}}},
},
},
"ExpressionDotNotation": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", "$v.foo"}}}},
},
},
"ExpressionIndexDotNotation": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", "$v.0.foo"}}}},
},
},
"Document": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", bson.D{{"v", "foo"}}}}}},
},
},
"DocumentExpression": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", bson.D{{"v", "$v"}}}}}},
},
},
"DocumentNestedExpr": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"v", bson.D{{"foo", bson.D{{"$expr", int32(1)}}}}}}}},
},
resultType: emptyResult,
},
"DocumentInvalid": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", bson.D{{"v", "$"}}}}}},
},
resultType: emptyResult,
},
"Array": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", bson.A{"$v"}}}}},
},
},
"ArrayMany": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", bson.A{nil, "foo", int32(42)}}}}},
},
},
"ArrayInvalid": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", bson.A{"$"}}}}},
},
resultType: emptyResult,
},
"String": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", "v"}}}},
},
},
"True": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", true}}}},
},
},
"False": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", false}}}},
},
resultType: emptyResult,
},
"IntZero": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", int32(0)}}}},
},
resultType: emptyResult,
},
"Int": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", int32(1)}}}},
},
},
"LongZero": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", int64(0)}}}},
},
resultType: emptyResult,
},
"Long": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", int64(42)}}}},
},
},
"DoubleZero": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", float64(0)}}}},
},
resultType: emptyResult,
},
"Double": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", float64(-1)}}}},
},
},
"NonExistent": {
pipeline: bson.A{
bson.D{{"$match", bson.D{{"$expr", "$non-existent"}}}},
},
resultType: emptyResult,
},
"Type": {
pipeline: bson.A{bson.D{{"$match", bson.D{
{"$expr", bson.D{{"$type", "$v"}}},
}}}},
},
"Sum": {
pipeline: bson.A{bson.D{{"$match", bson.D{
{"$expr", bson.D{{"$sum", "$v"}}},
}}}},
},
"SumType": {
pipeline: bson.A{bson.D{{"$match", bson.D{
{"$expr", bson.D{{"$type", bson.D{{"$sum", "$v"}}}}},
}}}},
},
"Gt": {
pipeline: bson.A{bson.D{{"$match", bson.D{
{"$expr", bson.D{{"$gt", bson.A{"$v", 2}}}},
Expand Down
193 changes: 0 additions & 193 deletions integration/aggregate_query_test.go

This file was deleted.

0 comments on commit 7457c98

Please sign in to comment.