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 {
140
140
141
141
enableZstdCompression ( compressionOptions ) {
142
142
143
+ /* $lab:coverage:off$ */
143
144
Hoek . assert ( ! ! Zlib . constants . ZSTD_CLEVEL_DEFAULT , 'Zstd is not supported by the engine' ) ;
144
145
this . decoders . zstd = ( options ) => Zlib . createZstdDecompress ( { ...options , ...compressionOptions } ) ;
145
146
this . encoders . zstd = ( options ) => Zlib . createZstdCompress ( { ...options , ...compressionOptions } ) ;
146
147
this . setPriority ( [ 'zstd' ] ) ;
148
+ /* $lab:coverage:on$ */
147
149
}
148
150
149
151
setPriority ( priority ) {
Original file line number Diff line number Diff line change @@ -131,9 +131,11 @@ exports = module.exports = internals.Core = class {
131
131
this . compression . enableBrotliCompression ( this . settings . compression . enableBrotli ) ;
132
132
}
133
133
134
+ /* $lab:coverage:off$ */
134
135
if ( this . settings . compression . enableZstd ) {
135
136
this . compression . enableZstdCompression ( this . settings . compression . enableZstd ) ;
136
137
}
138
+ /* $lab:coverage:on$ */
137
139
138
140
if ( this . settings . compression . priority ) {
139
141
this . compression . setPriority ( this . settings . compression . priority ) ;
You can’t perform that action at this time.
0 commit comments