use of com.oracle.truffle.api.interop.InteropLibrary in project graal by oracle.
the class InteropLibraryBaseTest method assertNoLanguage.
protected final void assertNoLanguage(Object value) {
InteropLibrary lib = createLibrary(InteropLibrary.class, value);
assertFalse(lib.hasLanguage(value));
assertUnsupported(() -> lib.getLanguage(value));
}
use of com.oracle.truffle.api.interop.InteropLibrary in project graal by oracle.
the class InteropLibraryBaseTest method assertNoNative.
protected final void assertNoNative(Object value) {
InteropLibrary lib = createLibrary(InteropLibrary.class, value);
assertFalse(lib.isPointer(value));
assertUnsupported(() -> lib.asPointer(value));
// must not fail.
lib.toNative(value);
}
use of com.oracle.truffle.api.interop.InteropLibrary in project graal by oracle.
the class InteropLibraryBaseTest method assertNoDate.
protected final void assertNoDate(Object value) {
InteropLibrary lib = createLibrary(InteropLibrary.class, value);
assertFalse(lib.isDate(value));
assertUnsupported(() -> lib.asDate(value));
}
use of com.oracle.truffle.api.interop.InteropLibrary in project graal by oracle.
the class InteropLibraryBaseTest method assertNoBoolean.
protected final void assertNoBoolean(Object value) {
InteropLibrary lib = createLibrary(InteropLibrary.class, value);
assertFalse(lib.isBoolean(value));
assertUnsupported(() -> lib.asBoolean(value));
}
use of com.oracle.truffle.api.interop.InteropLibrary in project graal by oracle.
the class InteropLibraryBaseTest method assertNoSourceLocation.
protected final void assertNoSourceLocation(Object value) {
InteropLibrary lib = createLibrary(InteropLibrary.class, value);
assertFalse(lib.hasSourceLocation(value));
assertUnsupported(() -> lib.getSourceLocation(value));
}
Aggregations