MCPcopy Create free account
hub / github.com/apache/avro / test_read

Method test_read

lang/php/test/InterOpTest.php:68–80  ·  view source on GitHub ↗

* @coversNothing * @dataProvider file_name_provider */

($file_name)

Source from the content-addressed store, hash-verified

66 * @dataProvider file_name_provider
67 */
68 public function test_read($file_name)
69 {
70 $dr = AvroDataIO::openFile(
71 $file_name, AvroFile::READ_MODE, $this->projection_json);
72
73 $data = $dr->data();
74
75 $this->assertNotCount(0, $data, sprintf("no data read from %s", $file_name));
76
77 foreach ($data as $idx => $datum) {
78 $this->assertNotNull($datum, sprintf("null datum from %s", $file_name));
79 }
80 }
81}

Callers

nothing calls this directly

Calls 2

openFileMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected