mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 18:59:59 +08:00
Add fuzzer to Maybe & Dropdown.
This commit is contained in:
parent
76b2f17488
commit
31b5fac9c5
@ -57,7 +57,7 @@ Component GeneratorComponent(const char*& data, size_t& size, int depth) {
|
||||
if (depth <= 0)
|
||||
return Button(GeneratorString(data, size), [] {});
|
||||
|
||||
switch (value % 16) {
|
||||
switch (value % 18) {
|
||||
case 1:
|
||||
return Checkbox(GeneratorString(data, size), &g_bool);
|
||||
case 2:
|
||||
@ -102,6 +102,10 @@ Component GeneratorComponent(const char*& data, size_t& size, int depth) {
|
||||
&g_int);
|
||||
case 15:
|
||||
return Container::Tab(GeneratorComponents(data, size, depth - 1), &g_int);
|
||||
case 16:
|
||||
return Maybe(GeneratorComponent(data, size, depth - 1), &g_bool);
|
||||
case 17:
|
||||
return Dropdown(&g_list, &g_int);
|
||||
default:
|
||||
return Button(GeneratorString(data, size), [] {});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user