File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,24 +98,20 @@ def test_files_build():
9898 with open (output_path , "wb" ) as dest_file :
9999 builder .sign (signer , "image/jpeg" , source_file , dest_file )
100100
101-
102101def test_streams_build ():
103102 """Benchmark building a C2PA asset from a stream."""
104103 output = io .BytesIO (bytearray ())
105104 with open (test_path , "rb" ) as source_file :
106105 builder .sign (signer , "image/jpeg" , source_file , output )
107106
108-
109107def test_files_reading (benchmark ):
110108 """Benchmark file-based reading."""
111109 benchmark (test_files_read )
112110
113-
114111def test_streams_reading (benchmark ):
115112 """Benchmark stream-based reading."""
116113 benchmark (test_streams_read )
117114
118-
119115def test_files_builder_signer_benchmark (benchmark ):
120116 """Benchmark file-based building."""
121117 benchmark (test_files_build )
You can’t perform that action at this time.
0 commit comments