File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -140,10 +140,12 @@ exports = module.exports = internals.Compression = class {
140140
141141 enableZstdCompression ( compressionOptions ) {
142142
143+ /* $lab:coverage:off$ */
143144 Hoek . assert ( ! ! Zlib . constants . ZSTD_CLEVEL_DEFAULT , 'Zstd is not supported by the engine' ) ;
144145 this . decoders . zstd = ( options ) => Zlib . createZstdDecompress ( { ...options , ...compressionOptions } ) ;
145146 this . encoders . zstd = ( options ) => Zlib . createZstdCompress ( { ...options , ...compressionOptions } ) ;
146147 this . setPriority ( [ 'zstd' ] ) ;
148+ /* $lab:coverage:on$ */
147149 }
148150
149151 setPriority ( priority ) {
Original file line number Diff line number Diff line change @@ -131,9 +131,11 @@ exports = module.exports = internals.Core = class {
131131 this . compression . enableBrotliCompression ( this . settings . compression . enableBrotli ) ;
132132 }
133133
134+ /* $lab:coverage:off$ */
134135 if ( this . settings . compression . enableZstd ) {
135136 this . compression . enableZstdCompression ( this . settings . compression . enableZstd ) ;
136137 }
138+ /* $lab:coverage:on$ */
137139
138140 if ( this . settings . compression . priority ) {
139141 this . compression . setPriority ( this . settings . compression . priority ) ;
You can’t perform that action at this time.
0 commit comments