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

Method test_seek

lang/php/test/StringIOTest.php:44–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 public function test_seek()
45 {
46 $strio = new AvroStringIO('abcdefghijklmnopqrstuvwxyz');
47 $strio->seek(4, AvroIO::SEEK_SET);
48 $this->assertEquals('efgh', $strio->read(4));
49 $strio->seek(4, AvroIO::SEEK_CUR);
50 $this->assertEquals('mnop', $strio->read(4));
51 $strio->seek(-4, AvroIO::SEEK_END);
52 $this->assertEquals('wxyz', $strio->read(4));
53 }
54
55 public function test_tell()
56 {

Callers

nothing calls this directly

Calls 3

assertEqualsMethod · 0.80
seekMethod · 0.65
readMethod · 0.65

Tested by

no test coverage detected