MCPcopy Index your code
hub / github.com/Breakthrough/PySceneDetect / test_read_no_decode

Method test_read_no_decode

tests/test_video_stream.py:165–171  ·  view source on GitHub ↗

Validate invoking `read` with `decode` set to False.

(
        self, vs_type: ty.Callable[..., VideoStream], test_video: VideoParameters
    )

Source from the content-addressed store, hash-verified

163 assert stream.frame_number == 1
164
165 def test_read_no_decode(
166 self, vs_type: ty.Callable[..., VideoStream], test_video: VideoParameters
167 ):
168 """Validate invoking `read` with `decode` set to False."""
169 stream = vs_type(test_video.path)
170 assert stream.read(decode=False) is True
171 assert stream.frame_number == 1
172
173 def test_time_invariants(
174 self, vs_type: ty.Callable[..., VideoStream], test_video: VideoParameters

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected