RCodeInfo { public boolean isClass() { return isClass; } RCodeInfo(InputStream input);  RCodeInfo(InputStream input, PrintStream out); ITypeInfo getTypeInfo(); static void printByteBuffer(PrintStream writer, byte[] block); long getVersion(); long getTimeStamp(); boolean is64bits(); boolean isClass(); static String readNullTerminatedString(byte[] array, int offset); static String readNullTerminatedString(byte[] array, int offset, Charset charset);  }
@Test public void testEnum() throws IOException { try (FileInputStream input = new FileInputStream("src/test/resources/rcode/MyEnum.r")) { RCodeInfo rci = new RCodeInfo(input); assertTrue(rci.isClass()); } catch (InvalidRCodeException caught) { throw new RuntimeException("RCode should be valid", caught); } }
@Test public void testInterface() throws IOException { try (FileInputStream input = new FileInputStream("src/test/resources/rcode/IMyTest.r")) { RCodeInfo rci = new RCodeInfo(input); assertTrue(rci.isClass()); } catch (InvalidRCodeException caught) { throw new RuntimeException("RCode should be valid", caught); } }
@Test public void testClass() throws IOException { try (FileInputStream input = new FileInputStream("src/test/resources/rcode/BackupDataCallback.r")) { RCodeInfo rci = new RCodeInfo(input); assertTrue(rci.isClass()); } catch (InvalidRCodeException caught) { throw new RuntimeException("RCode should be valid", caught); } }
@Test public void testClass3() throws IOException { try (FileInputStream input = new FileInputStream("src/test/resources/rcode/ttClass.r")) { RCodeInfo rci = new RCodeInfo(input); assertTrue(rci.isClass()); } catch (InvalidRCodeException caught) { throw new RuntimeException("RCode should be valid", caught); } }
@Test public void testProcedure() throws IOException { try (FileInputStream input = new FileInputStream("src/test/resources/rcode/compile.r")) { RCodeInfo rci = new RCodeInfo(input); assertFalse(rci.isClass()); } catch (InvalidRCodeException caught) { throw new RuntimeException("RCode should be valid", caught); } }
@Test public void testProcedure2() throws IOException { try (FileInputStream input = new FileInputStream("src/test/resources/rcode/AbstractTTCollection.r")) { RCodeInfo rci = new RCodeInfo(input); assertTrue(rci.isClass()); } catch (InvalidRCodeException caught) { throw new RuntimeException("RCode should be valid", caught); } }
@Test public void testProcedure3() throws IOException { try (FileInputStream input = new FileInputStream("src/test/resources/rcode/FileTypeRegistry.r")) { RCodeInfo rci = new RCodeInfo(input); assertTrue(rci.isClass()); } catch (InvalidRCodeException caught) { throw new RuntimeException("RCode should be valid", caught); } }
@Test public void testProcedure4() throws IOException { try (FileInputStream input = new FileInputStream("src/test/resources/rcode/_dmpincr.r")) { RCodeInfo rci = new RCodeInfo(input); assertFalse(rci.isClass()); } catch (InvalidRCodeException caught) { throw new RuntimeException("RCode should be valid", caught); } }