FTXUI
6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
terminal_input_parser_test_fuzzer.cpp
Go to the documentation of this file.
1
// Copyright 2021 Arthur Sonzogni. All rights reserved.
2
// Use of this source code is governed by the MIT license that can be found in
3
// the LICENSE file.
4
#include <cstddef>
5
#include <
ftxui/component/event.hpp
>
6
#include "
ftxui/component/terminal_input_parser.hpp
"
7
8
extern
"C"
int
LLVMFuzzerTestOneInput
(
const
char
* data,
size_t
size) {
9
using namespace
ftxui
;
10
auto
parser =
TerminalInputParser
([&](
Event
) {});
11
for
(
size_t
i = 0; i < size; ++i) {
12
parser.Add(data[i]);
13
}
14
15
return
0;
// Non-zero return values are reserved for future use.
16
}
ftxui::TerminalInputParser
Definition
terminal_input_parser.hpp:17
event.hpp
ftxui::Event
Represent an event. It can be key press event, a terminal resize, or more ...
Definition
event.hpp:29
ftxui
The FTXUI ftxui:: namespace.
Definition
animation.hpp:10
terminal_input_parser.hpp
LLVMFuzzerTestOneInput
int LLVMFuzzerTestOneInput(const char *data, size_t size)
Definition
terminal_input_parser_test_fuzzer.cpp:8
src
ftxui
component
terminal_input_parser_test_fuzzer.cpp
Generated by
1.12.0