------------------------------------------------------------------------------
| 31 | |
| 32 | //------------------------------------------------------------------------------ |
| 33 | int vtkXMLFileReadTester::TestReadFile() |
| 34 | { |
| 35 | if (!this->FileName) |
| 36 | { |
| 37 | return 0; |
| 38 | } |
| 39 | |
| 40 | vtksys::ifstream inFile(this->FileName); |
| 41 | if (!inFile) |
| 42 | { |
| 43 | return 0; |
| 44 | } |
| 45 | |
| 46 | this->SetStream(&inFile); |
| 47 | this->Done = 0; |
| 48 | |
| 49 | this->Parse(); |
| 50 | |
| 51 | return this->Done ? 1 : 0; |
| 52 | } |
| 53 | |
| 54 | //------------------------------------------------------------------------------ |
| 55 | void vtkXMLFileReadTester::StartElement(const char* name, const char** atts) |
no test coverage detected