mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-08 14:15:17 +00:00
[fuzzer] Adds code generation target. (#8795)
* adds code generation fuzzer target. * add buffer verification * add table verification in codegen fuzzer --------- Co-authored-by: Björn Harrtell <bjornharrtell@users.noreply.github.com>
This commit is contained in:
24
tests/fuzzer/seed_codegen/complex_schema
Normal file
24
tests/fuzzer/seed_codegen/complex_schema
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace Example;
|
||||
|
||||
enum Status:byte { Active, Inactive, Pending }
|
||||
|
||||
struct Point {
|
||||
x:int;
|
||||
y:int;
|
||||
}
|
||||
|
||||
table User {
|
||||
id:uint;
|
||||
name:string;
|
||||
points:[Point];
|
||||
status:Status = Active;
|
||||
metadata:[string];
|
||||
}
|
||||
|
||||
table Group {
|
||||
name:string;
|
||||
users:[User];
|
||||
leader:User;
|
||||
}
|
||||
|
||||
root_type Group;
|
||||
Reference in New Issue
Block a user