-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
Note: 1. "PanicInfo.to_json_string" has been modified. 2. Some problems detected by the fuzz test will be solved soon. What: 1. Add a fuzz test for kclvm-parser.parse_expr. 2. "PanicInfo.to_json_string" has been modified. 3. Remove some unusd imports. 4. In order to adapt to the new "PanicInfo.to_json_string", some code have been changed. How: 1. Add "fuzz/fuzz_parser" in kclvm/tests. 2. Init kclvm/tests to a cargo project. 3. Add fuzz-parser in Makefile. 4. Remove some unusd imports. 5. "PanicInfo.to_json_string" has been modified by "serde_json::to_string". 6. Change all “$__kcl_PanicInfo__$” to “__kcl_PanicInfo__”. Why: 1. Add a fuzz test in order to detect more bugs. 2. "serde" provides a better interface for serialization/deserialization of “PanicInfo”. 3. Serialization/Deserialization of “PanicInfo" is helpful for catching panic errors in fuzz. 4. "cargo fuzz" can only be used under a cargo project.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
use std::fmt::format; | ||
|
||
use crate::*; | ||
|
||
use expect_test::{expect, Expect}; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
name = "tests" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
target | ||
corpus | ||
artifacts |