Commit Graph

  • 98fb7d94aa Move all untagged enum tests (except flatten) into a dedicated module Mingun 2024-08-17 01:32:20 +05:00
  • 31ca16d9bc Merge pull request #2804 from Mingun/adjacently-tagged-tests David Tolnay 2024-08-23 14:12:41 -07:00
  • 9f72ce695e Struct: add tests for deserialization from sequence Mingun 2024-08-16 22:22:26 +05:00
  • c383e4f953 Tuple: add tests for deserialization from sequence Mingun 2024-08-16 22:18:20 +05:00
  • a94d8750fb Newtype: move up the test with tag only Mingun 2024-08-16 22:12:33 +05:00
  • b0d651be40 Newtype: add tests for deserialization from sequence Mingun 2024-08-16 22:10:26 +05:00
  • d5a9c11b5c No need to test integer and byte array field names, they already tested for Unit case Mingun 2024-08-16 22:46:41 +05:00
  • 6bfe1c435a Unit: add tests for deserialization from bytes tag and content fields Mingun 2024-08-16 22:35:54 +05:00
  • a02da49b87 Unit: add tests for deserialization from integer tag and content fields Mingun 2024-08-12 01:06:51 +05:00
  • 29dc6c3367 Unit: add tests for deserialization from sequence Mingun 2024-08-12 00:45:29 +05:00
  • a7f0bab078 Document fields in internal structs used to deserialize adjacently tagged enums Mingun 2024-08-12 00:49:58 +05:00
  • 3dc6829303 Integrate bytes test into struct_ test Mingun 2023-08-14 03:05:50 +05:00
  • 42e63ff942 Reuse AdjacentlyTagged enum in bytes test Mingun 2023-08-14 02:59:20 +05:00
  • df07751e6f Group newtype and newtype_with_newtype tests Mingun 2024-08-11 23:11:31 +05:00
  • 5445f1741b Reuse AdjacentlyTagged enum in newtype_with_newtype test Mingun 2024-08-11 23:10:12 +05:00
  • 9d0f811221 Remove unnecessary generic Mingun 2024-08-11 23:08:25 +05:00
  • 36b9a859c4 Test deserialization of the serialized unit format for adjacently tagged enum Mingun 2024-08-11 23:03:26 +05:00
  • 59628d1712 Create only one value for all checks Mingun 2023-08-14 02:48:56 +05:00
  • bee7470715 Split test test_adjacently_tagged_enum into four tests for each variant Mingun 2023-08-14 02:19:31 +05:00
  • 5a359e10f4 Group Newtype variant checks in test_adjacently_tagged_enum together Mingun 2023-08-14 01:57:15 +05:00
  • 5e37ade519 Move all adjacently tagged enum tests (except flatten) into a dedicated module Mingun 2023-08-14 01:46:37 +05:00
  • 1a9ffdbd0c Merge pull request #2788 from Mingun/internally-tagged-enum-tests David Tolnay 2024-08-15 14:42:28 -07:00
  • 2adb0e99b0 Add additional checks for unit and newtype_unit tests Mingun 2023-08-08 01:56:51 +05:00
  • 71ed1f2f12 Add tests for special and general cases for internally tagged enums Mingun 2022-10-03 23:07:12 +05:00
  • 47954502af Add tests with borrowed strings for the tag field name and tag value Mingun 2023-08-08 01:20:15 +05:00
  • 4987fd15f7 Convert newtype_enum and struct_enum tests into modules Mingun 2023-08-08 00:54:36 +05:00
  • 8bfe0d0ac0 Move and rename tests: Mingun 2023-08-07 22:51:46 +05:00
  • 7c0e6bd18f Reuse type in struct_variant_containing_unit_variant Mingun 2023-08-07 22:55:35 +05:00
  • 41b9c33c2b Reuse type in newtype_variant_containing_externally_tagged_enum Mingun 2023-08-07 21:58:50 +05:00
  • 28a775db22 Share externally tagged enum Enum between all tests and reuse in struct_variant_containing_unit_variant Mingun 2023-08-07 21:30:37 +05:00
  • e999600f8f Rename externally tagged enum Inner to Enum Mingun 2023-08-07 21:20:28 +05:00
  • d3492d8d36 Reuse type in newtype_variant_containing_unit_struct Mingun 2023-08-07 21:53:32 +05:00
  • 48de0c51b0 Share unit struct Unit between all tests Mingun 2023-08-07 21:36:16 +05:00
  • 93bda5f1dc Rename unit struct to a generic name: Info->Unit Mingun 2023-08-07 21:35:02 +05:00
  • 2d75ef6b30 Reuse type in newtype_variant_containing_unit Mingun 2023-08-07 21:47:55 +05:00
  • f97160f715 Reuse type in unit_variant_with_unknown_fields and add test for sequence Mingun 2023-08-07 21:42:47 +05:00
  • eb59c776ca Use name "tag" to refer to tag field Mingun 2023-08-07 21:15:21 +05:00
  • 9128201c78 Use the same order of derives Mingun 2023-08-07 21:12:23 +05:00
  • 2cbfd37072 Move all other internally tagged enum tests into a dedicated file Mingun 2023-07-28 00:46:02 +05:00
  • 0939214c51 Move internally tagged enum tests into a dedicated file Mingun 2023-07-28 00:30:15 +05:00
  • 8c60f5aea7 Reorder enum variants and tests to canonical order (Unit, Newtype, Tuple, Struct) Mingun 2023-04-22 20:54:00 +05:00
  • da0ed4021d Give meaningful names to enum variants Mingun 2023-04-22 20:51:00 +05:00
  • 99f905403b Move all internally tagged enum tests of test_macros into a dedicated module Mingun 2023-07-27 23:42:58 +05:00
  • aa0654332d Convert test_internally_tagged_enum into module Mingun 2023-04-22 20:36:41 +05:00
  • af376c22c3 Merge pull request #2803 from jonhoo/mv-flatten-tests David Tolnay 2024-08-15 10:53:49 -07:00
  • 477eb7b70e Group flatten tests Jon Gjengset 2024-08-15 18:28:49 +02:00
  • 026e91a68c Release 1.0.208 v1.0.208 David Tolnay 2024-08-15 08:41:27 -07:00
  • bfbedac919 Merge pull request #2802 from jonhoo/flatten-unit-struct David Tolnay 2024-08-15 08:40:11 -07:00
  • 4036ff88ed Support (de-)serializing flattened unit struct Jon Gjengset 2024-08-15 15:50:40 +02:00
  • 1b4da41f97 Release 1.0.207 v1.0.207 David Tolnay 2024-08-12 13:06:46 -07:00
  • f61d452814 Touch up PR 2795 David Tolnay 2024-08-12 13:00:04 -07:00
  • f9866097a0 Merge pull request #2795 from Mingun/has-flatten-rework David Tolnay 2024-08-12 13:02:58 -07:00
  • 8b769fcc20 Remove unused component from tuple Mingun 2023-08-11 01:19:48 +05:00
  • 9c954264f4 Include variant aliases in error messages Mingun 2023-08-11 01:09:44 +05:00
  • 77a6a9d4e1 Take into account only not skipped flatten fields when choose serialization form Mingun 2024-08-11 19:56:27 +05:00
  • 547d843cca Remove dead code - serialize_struct_as_map always called when cattrs.has_flatten()==true Mingun 2024-08-11 19:22:47 +05:00
  • 005cb84593 Fail with an understandable message is number of fields for serialization is too many Mingun 2024-08-11 20:00:02 +05:00
  • fd5b5e9aa5 Correctly calculate has_flatten attribute in all cases for deserialization Mingun 2024-08-11 18:46:31 +05:00
  • 0647a7c1fe Fix creating and filling a collections that was not read Mingun 2024-08-11 18:16:19 +05:00
  • 85c73ef8de Release 1.0.206 v1.0.206 David Tolnay 2024-08-11 00:06:36 -07:00
  • 5ba1796a7e Resolve doc_markdown pedantic lint on regression test function David Tolnay 2024-08-11 00:08:11 -07:00
  • e52b7b380f Touch up PR 2567 David Tolnay 2024-08-10 23:34:36 -07:00
  • 84c7419652 Merge pull request #2794 from dtolnay/neverread David Tolnay 2024-08-11 00:05:31 -07:00
  • 536221b1f9 Temporarily ignore collection_is_never_read on FlattenSkipDeserializing David Tolnay 2024-08-10 23:58:58 -07:00
  • fc55ac70d3 Merge pull request #2567 from Mingun/fix-2565 David Tolnay 2024-08-10 23:28:22 -07:00
  • 2afe5b4ef9 Add regression test for issue #2792 Mingun 2024-08-10 21:29:39 +05:00
  • b4ec2595c9 Correctly process flatten fields in enum variants Mingun 2023-07-24 00:57:47 +05:00
  • c3ac7b675a Add regression test for issue #1904 Mingun 2022-10-05 22:35:28 +05:00
  • 24614e44bf Add regression test for issue #2565 Mingun 2023-08-11 02:50:46 +05:00
  • 9b868ef831 Release 1.0.205 v1.0.205 David Tolnay 2024-08-07 18:53:21 -07:00
  • c3eaf76430 Merge pull request #2791 from dtolnay/flatten David Tolnay 2024-08-07 18:52:21 -07:00
  • 32958dec3b Skip collecting unmatched fields in variants that do not use flatten David Tolnay 2024-08-07 18:43:47 -07:00
  • d64a97ba1e Ignore confusable_idents warning in test David Tolnay 2024-08-07 18:19:46 -07:00
  • c3df3372a1 Add test of flatten in enum David Tolnay 2024-08-07 18:17:50 -07:00
  • 8764353fe2 Enable collection_is_never_read nursury lint in test David Tolnay 2024-08-07 18:16:48 -07:00
  • e08c5de5dd Merge pull request #2785 from Mingun/serialize_entry-in-flatten-newtype-variant David Tolnay 2024-08-05 00:17:58 -07:00
  • 74b538b8ec Produce error about mismatched types of #[serde(with = "...")] and #[serde(default = "...")] attributes on the attribute itself Mingun 2023-07-22 19:44:59 +05:00
  • 291ec50d98 Add tests that ensures that error reported for a path for with and default attributes Mingun 2023-07-22 22:33:09 +05:00
  • bc5af506bd Use serialize_entry instead of serialize_key + serialize_value when serialize flatten newtype enum variant Mingun 2024-08-03 14:49:38 +05:00
  • 21c7fd1bd5 Add tests of #[serde(default)] attribute for units and unions Mingun 2023-08-07 14:42:54 +05:00
  • 28a092261b Work around test suite dead code warnings in nightly-2024-07-07 David Tolnay 2024-07-06 19:17:26 -07:00
  • 18dcae0a77 Release 1.0.204 v1.0.204 David Tolnay 2024-07-06 13:38:01 -07:00
  • 58c307f9cc Alphabetize list of rustc-check-cfg David Tolnay 2024-07-06 10:30:46 -07:00
  • 8cc4809414 Merge pull request #2769 from dtolnay/onunimpl David Tolnay 2024-07-06 13:33:50 -07:00
  • 1179158def Update ui test with diagnostic::on_unimplemented from PR 2767 David Tolnay 2024-07-06 13:17:21 -07:00
  • 91aa40e749 Add ui test of unsatisfied serde trait bound David Tolnay 2024-07-06 10:25:56 -07:00
  • 595019e979 Cut test_suite from workspace members in old toolchain CI jobs David Tolnay 2024-07-06 13:25:54 -07:00
  • b0d7917f88 Pull in trybuild 'following types implement trait' fix David Tolnay 2024-07-06 13:13:04 -07:00
  • 8e6637a1e4 Merge pull request #2767 from weiznich/feature/diagnostic_on_unimplemented David Tolnay 2024-07-06 10:29:08 -07:00
  • 694fe05953 Use the #[diagnostic::on_unimplemented] attribute when possible Georg Semmler 2024-07-02 16:39:06 +02:00
  • f3dfd2a237 Suppress dead code warning in test of unit struct remote derive David Tolnay 2024-06-26 19:41:19 -07:00
  • 9e6158e9e6 Nightly no longer requires error_in_core feature David Tolnay 2024-06-10 09:45:45 -07:00
  • d577c4a2ce Merge pull request #2754 from bm-w/master David Tolnay 2024-06-06 21:32:01 -07:00
  • fee0b82a40 Fix missing close paren in crates-io.md Bastiaan Marinus van de Weerd 2024-06-06 23:19:04 -04:00
  • 7aafa26314 Fill in ignore reasons in all #[ignore] attributes David Tolnay 2024-06-01 22:13:43 -07:00
  • d5bc546ca5 Release 1.0.203 v1.0.203 David Tolnay 2024-05-25 10:43:27 -07:00
  • 45ae217728 Merge pull request #2747 from dtolnay/variadic David Tolnay 2024-05-25 10:15:58 -07:00
  • b7b97dda73 Unindent implementation inside tuple_impl_body macro David Tolnay 2024-05-25 10:11:45 -07:00
  • 5d3c563d46 Document tuple impls as fake variadic David Tolnay 2024-05-25 10:02:21 -07:00
  • 376185458b Merge pull request #2745 from dtolnay/docsrs David Tolnay 2024-05-18 21:25:44 -07:00