Revert the deletion of org.elasticsearch.painless.test as part of the commit 3cf2c33b. (#252)

The file was renamed but git is instead reporting a file deletion. This commit reverts the deletion. We will create a separate PR to renaming the file.

Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
Rabi Panda 2021-03-10 08:44:17 -08:00 committed by Nick Knize
parent e21c436cea
commit e1d4d27d3e
2 changed files with 55 additions and 55 deletions

View File

@ -0,0 +1,55 @@
# whitelist for tests
# TODO: remove this when the transition from Joda to Java datetimes is completed
class org.elasticsearch.script.JodaCompatibleZonedDateTime {
(Instant, ZoneId)
}
# for unit tests only
class org.elasticsearch.painless.api.Json {
def load(String)
String dump(def)
String dump(def,boolean)
}
class org.elasticsearch.painless.BindingsTests$BindingsTestScript {
}
class org.elasticsearch.painless.FeatureTestObject @no_import {
int z
()
(int,int)
int getX()
int getY()
Integer getI()
void setX(int)
void setY(int)
void setI(Integer)
boolean overloadedStatic()
boolean overloadedStatic(boolean)
int staticNumberTest(Number)
int staticNumberArgument(int, int) @inject_constant[1="testInject0"]
Double mixedAdd(int, Byte, char, Float)
Object twoFunctionsOfX(Function,Function)
void listInput(List)
int injectTimesX(int, short) @inject_constant[1="testInject0"]
int timesSupplier(Function, short, int)
int injectWithLambda(int, Function, short) @inject_constant[1="testInject0"]
int org.elasticsearch.painless.FeatureTestAugmentationObject augmentInjectTimesX(int, short) @inject_constant[1="testInject0"]
int org.elasticsearch.painless.FeatureTestAugmentationObject augmentTimesSupplier(Function, short, int)
int org.elasticsearch.painless.FeatureTestAugmentationObject augmentInjectWithLambda(int, Function, short) @inject_constant[1="testInject0"]
int injectMultiTimesX(int, int, int, short) @inject_constant[1="testInject0", 2="testInject1", 3="testInject2"]
int injectMultiWithLambda(int, int, int, Function, short) @inject_constant[1="testInject0", 2="testInject1", 3="testInject0"]
int org.elasticsearch.painless.FeatureTestAugmentationObject augmentInjectMultiTimesX(int, int, short) @inject_constant[1="testInject1", 2="testInject2"]
int org.elasticsearch.painless.FeatureTestAugmentationObject augmentInjectMultiWithLambda(int, int, int, int, Function, short) @inject_constant[1="testInject2", 2="testInject1", 3="testInject1", 4="testInject2"]
int org.elasticsearch.painless.FeatureTestAugmentationObject getTotal()
int org.elasticsearch.painless.FeatureTestAugmentationObject addToTotal(int)
}
static_import {
int staticAddIntsTest(int, int) from_class org.elasticsearch.painless.StaticTestObject
float staticAddFloatsTest(float, float) from_class org.elasticsearch.painless.FeatureTestObject
int addWithState(int, int, int, double) bound_to org.elasticsearch.painless.BindingsTests$BindingTestClass
int addThisWithState(BindingsTests.BindingsTestScript, int, int, int, double) bound_to org.elasticsearch.painless.BindingsTests$ThisBindingTestClass
int addEmptyThisWithState(BindingsTests.BindingsTestScript, int) bound_to org.elasticsearch.painless.BindingsTests$EmptyThisBindingTestClass
}

View File

@ -1,55 +0,0 @@
# whitelist for tests
# TODO: remove this when the transition from Joda to Java datetimes is completed
class org.opensearch.script.JodaCompatibleZonedDateTime {
(Instant, ZoneId)
}
# for unit tests only
class org.opensearch.painless.api.Json {
def load(String)
String dump(def)
String dump(def,boolean)
}
class org.opensearch.painless.BindingsTests$BindingsTestScript {
}
class org.opensearch.painless.FeatureTestObject @no_import {
int z
()
(int,int)
int getX()
int getY()
Integer getI()
void setX(int)
void setY(int)
void setI(Integer)
boolean overloadedStatic()
boolean overloadedStatic(boolean)
int staticNumberTest(Number)
int staticNumberArgument(int, int) @inject_constant[1="testInject0"]
Double mixedAdd(int, Byte, char, Float)
Object twoFunctionsOfX(Function,Function)
void listInput(List)
int injectTimesX(int, short) @inject_constant[1="testInject0"]
int timesSupplier(Function, short, int)
int injectWithLambda(int, Function, short) @inject_constant[1="testInject0"]
int org.opensearch.painless.FeatureTestAugmentationObject augmentInjectTimesX(int, short) @inject_constant[1="testInject0"]
int org.opensearch.painless.FeatureTestAugmentationObject augmentTimesSupplier(Function, short, int)
int org.opensearch.painless.FeatureTestAugmentationObject augmentInjectWithLambda(int, Function, short) @inject_constant[1="testInject0"]
int injectMultiTimesX(int, int, int, short) @inject_constant[1="testInject0", 2="testInject1", 3="testInject2"]
int injectMultiWithLambda(int, int, int, Function, short) @inject_constant[1="testInject0", 2="testInject1", 3="testInject0"]
int org.opensearch.painless.FeatureTestAugmentationObject augmentInjectMultiTimesX(int, int, short) @inject_constant[1="testInject1", 2="testInject2"]
int org.opensearch.painless.FeatureTestAugmentationObject augmentInjectMultiWithLambda(int, int, int, int, Function, short) @inject_constant[1="testInject2", 2="testInject1", 3="testInject1", 4="testInject2"]
int org.opensearch.painless.FeatureTestAugmentationObject getTotal()
int org.opensearch.painless.FeatureTestAugmentationObject addToTotal(int)
}
static_import {
int staticAddIntsTest(int, int) from_class org.opensearch.painless.StaticTestObject
float staticAddFloatsTest(float, float) from_class org.opensearch.painless.FeatureTestObject
int addWithState(int, int, int, double) bound_to org.opensearch.painless.BindingsTests$BindingTestClass
int addThisWithState(BindingsTests.BindingsTestScript, int, int, int, double) bound_to org.opensearch.painless.BindingsTests$ThisBindingTestClass
int addEmptyThisWithState(BindingsTests.BindingsTestScript, int) bound_to org.opensearch.painless.BindingsTests$EmptyThisBindingTestClass
}