Add component sections to `incremental-parse` fuzz test.
@@ -158,6 +158,26 @@ fuzz_target!(|data: Vec<Vec<u8>>| {
assert_eq!(a.get_binary_reader().range(), b.get_binary_reader().range());
}
+ (ComponentTypeSection(a), ComponentTypeSection(b)) => assert_eq!(a.range(), b.range()),
+ (ComponentImportSection(a), ComponentImportSection(b)) => {
+ assert_eq!(a.range(), b.range())
+ }
+ (ComponentFunctionSection(a), ComponentFunctionSection(b)) => {
+ assert_eq!(a.range(), b.range())
+ }
+ (ModuleSection { range: a, .. }, ModuleSection { range: b, .. }) => assert_eq!(a, b),
+ (ComponentSection { range: a, .. }, ComponentSection { range: b, .. }) => {
+ assert_eq!(a, b)
+ }
+ (InstanceSection(a), InstanceSection(b)) => assert_eq!(a.range(), b.range()),
+ (ComponentExportSection(a), ComponentExportSection(b)) => {
+ assert_eq!(a.range(), b.range())
+ }
+ (ComponentStartSection(a), ComponentStartSection(b)) => {
+ assert_eq!(a.range(), b.range())
+ }
+ (AliasSection(a), AliasSection(b)) => assert_eq!(a.range(), b.range()),
+
(
UnknownSection {
id: a,
