public class VarFuzzer extends Object
Modifier and Type | Field and Description |
---|---|
protected com.google.javascript.jscomp.fuzzing.FuzzingContext |
context |
Modifier and Type | Method and Description |
---|---|
protected Node[] |
distribute(int budget,
com.google.javascript.jscomp.fuzzing.AbstractFuzzer[] fuzzers) |
protected Node |
fuzz(com.google.javascript.jscomp.fuzzing.AbstractFuzzer fuzzer,
int budget) |
protected Node |
generate(int budget) |
protected Node |
generate(int budget,
Set<com.google.javascript.jscomp.fuzzing.Type> types) |
protected int |
generateLength(int budget) |
protected String |
getConfigName() |
protected org.json.JSONObject |
getOwnConfig() |
static String |
getPrettyCode(Node root) |
protected boolean |
isEnough(int budget)
Decide if the budget is enough
|
protected Set<com.google.javascript.jscomp.fuzzing.Type> |
supportedTypes() |
protected boolean isEnough(int budget)
protected Node generate(int budget, Set<com.google.javascript.jscomp.fuzzing.Type> types)
budget
- When the budget is not enough, it will try to generate a node
with minimal budgetprotected String getConfigName()
protected org.json.JSONObject getOwnConfig()
protected Node generate(int budget)
protected Node[] distribute(int budget, com.google.javascript.jscomp.fuzzing.AbstractFuzzer[] fuzzers)
protected Node fuzz(com.google.javascript.jscomp.fuzzing.AbstractFuzzer fuzzer, int budget)
protected int generateLength(int budget)
protected Set<com.google.javascript.jscomp.fuzzing.Type> supportedTypes()
Copyright © 2009-2014 Google. All Rights Reserved.