File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed
Firestore/core/test/firebase/firestore/model Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,43 @@ TEST(Mutation, PatchesPrimitiveValue) {
148
148
}
149
149
150
150
TEST (Mutation, PatchingDeletedDocumentsDoesNothing) {
151
- // TODO(rsgowman)
151
+ auto base_doc =
152
+ std::make_shared<NoDocument>(testutil::DeletedDoc (" collection/key" , 0 ));
153
+ std::unique_ptr<Mutation> patch =
154
+ PatchMutation (" collection/key" , {{" foo" , FieldValue::FromString (" bar" )}});
155
+ MaybeDocumentPtr patched_doc =
156
+ patch->ApplyToLocalView (base_doc, base_doc.get (), Timestamp::Now ());
157
+ EXPECT_EQ (base_doc, patched_doc);
152
158
}
153
159
154
160
TEST (Mutation, AppliesLocalServerTimestampTransformsToDocuments) {
155
161
// TODO(rsgowman)
156
162
}
157
163
164
+ TEST (Mutation, AppliesIncrementTransformToDocument) {
165
+ // TODO(rsgowman)
166
+ }
167
+
168
+ TEST (Mutation, AppliesIncrementTransformToUnexpectedType) {
169
+ // TODO(rsgowman)
170
+ }
171
+
172
+ TEST (Mutation, AppliesIncrementTransformToMissingField) {
173
+ // TODO(rsgowman)
174
+ }
175
+
176
+ TEST (Mutation, AppliesIncrementTransformsConsecutively) {
177
+ // TODO(rsgowman)
178
+ }
179
+
180
+ TEST (Mutation, AppliesIncrementWithoutOverflow) {
181
+ // TODO(rsgowman)
182
+ }
183
+
184
+ TEST (Mutation, AppliesIncrementWithoutUnderflow) {
185
+ // TODO(rsgowman)
186
+ }
187
+
158
188
TEST (Mutation, CreatesArrayUnionTransform) {
159
189
// TODO(rsgowman)
160
190
}
You can’t perform that action at this time.
0 commit comments