@@ -163,7 +163,7 @@ describe('gpuMock', () => {
163
163
it ( 'sets value' , ( ) => {
164
164
const constants = { } ;
165
165
const kernel = gpuMock ( function ( ) { } ) ;
166
- kernel . setConstants ( constants ) ;
166
+ assert . equal ( kernel . setConstants ( constants ) , kernel ) ;
167
167
assert . equal ( kernel . constants , constants ) ;
168
168
} ) ;
169
169
} ) ;
@@ -187,7 +187,7 @@ describe('gpuMock', () => {
187
187
it ( 'sets value' , ( ) => {
188
188
const context = { } ;
189
189
const kernel = gpuMock ( function ( ) { } ) ;
190
- kernel . setContext ( context ) ;
190
+ assert . equal ( kernel . setContext ( context ) , kernel ) ;
191
191
assert . equal ( kernel . context , context ) ;
192
192
} ) ;
193
193
} ) ;
@@ -228,6 +228,48 @@ describe('gpuMock', () => {
228
228
assert . equal ( kernel . setArgumentTypes ( ) , kernel ) ;
229
229
} ) ;
230
230
} ) ;
231
+ describe ( '.setConstantTypes()' , ( ) => {
232
+ it ( 'can be called and return kernel' , ( ) => {
233
+ const kernel = gpuMock ( function ( ) { } ) ;
234
+ assert . equal ( kernel . setConstantTypes ( ) , kernel ) ;
235
+ } ) ;
236
+ } ) ;
237
+ describe ( '.setStrictIntegers()' , ( ) => {
238
+ it ( 'can be called and return kernel' , ( ) => {
239
+ const kernel = gpuMock ( function ( ) { } ) ;
240
+ assert . equal ( kernel . setStrictIntegers ( ) , kernel ) ;
241
+ } ) ;
242
+ } ) ;
243
+ describe ( '.setDynamicOutput()' , ( ) => {
244
+ it ( 'can be called and return kernel' , ( ) => {
245
+ const kernel = gpuMock ( function ( ) { } ) ;
246
+ assert . equal ( kernel . setDynamicOutput ( ) , kernel ) ;
247
+ } ) ;
248
+ } ) ;
249
+ describe ( '.setDynamicArguments()' , ( ) => {
250
+ it ( 'can be called and return kernel' , ( ) => {
251
+ const kernel = gpuMock ( function ( ) { } ) ;
252
+ assert . equal ( kernel . setDynamicArguments ( ) , kernel ) ;
253
+ } ) ;
254
+ } ) ;
255
+ describe ( '.setUseLegacyEncoder()' , ( ) => {
256
+ it ( 'can be called and return kernel' , ( ) => {
257
+ const kernel = gpuMock ( function ( ) { } ) ;
258
+ assert . equal ( kernel . setUseLegacyEncoder ( ) , kernel ) ;
259
+ } ) ;
260
+ } ) ;
261
+ describe ( '.setHardcodeConstants()' , ( ) => {
262
+ it ( 'can be called and return kernel' , ( ) => {
263
+ const kernel = gpuMock ( function ( ) { } ) ;
264
+ assert . equal ( kernel . setHardcodeConstants ( ) , kernel ) ;
265
+ } ) ;
266
+ } ) ;
267
+ describe ( '.setTactic()' , ( ) => {
268
+ it ( 'can be called and return kernel' , ( ) => {
269
+ const kernel = gpuMock ( function ( ) { } ) ;
270
+ assert . equal ( kernel . setTactic ( ) , kernel ) ;
271
+ } ) ;
272
+ } ) ;
231
273
describe ( '.setDebug()' , ( ) => {
232
274
it ( 'can be called and return kernel' , ( ) => {
233
275
const kernel = gpuMock ( function ( ) { } ) ;
@@ -252,6 +294,12 @@ describe('gpuMock', () => {
252
294
assert . equal ( kernel . setPrecision ( ) , kernel ) ;
253
295
} ) ;
254
296
} ) ;
297
+ describe ( '.setOutputToTexture()' , ( ) => {
298
+ it ( 'can be called and return kernel' , ( ) => {
299
+ const kernel = gpuMock ( function ( ) { } ) ;
300
+ assert . equal ( kernel . setOutputToTexture ( ) , kernel ) ;
301
+ } ) ;
302
+ } ) ;
255
303
describe ( '.setImmutable()' , ( ) => {
256
304
it ( 'can be called and return kernel' , ( ) => {
257
305
const kernel = gpuMock ( function ( ) { } ) ;
@@ -264,6 +312,18 @@ describe('gpuMock', () => {
264
312
assert . equal ( kernel . setFunctions ( ) , kernel ) ;
265
313
} ) ;
266
314
} ) ;
315
+ describe ( '.setNativeFunctions()' , ( ) => {
316
+ it ( 'can be called and return kernel' , ( ) => {
317
+ const kernel = gpuMock ( function ( ) { } ) ;
318
+ assert . equal ( kernel . setNativeFunctions ( ) , kernel ) ;
319
+ } ) ;
320
+ } ) ;
321
+ describe ( '.setInjectedNative()' , ( ) => {
322
+ it ( 'can be called and return kernel' , ( ) => {
323
+ const kernel = gpuMock ( function ( ) { } ) ;
324
+ assert . equal ( kernel . setInjectedNative ( ) , kernel ) ;
325
+ } ) ;
326
+ } ) ;
267
327
describe ( '.addSubKernel()' , ( ) => {
268
328
it ( 'can be called and return kernel' , ( ) => {
269
329
const kernel = gpuMock ( function ( ) { } ) ;
0 commit comments