MCPcopy Index your code
hub / github.com/phaserjs/phaser / createMockFile

Function createMockFile

tests/loader/LoaderPlugin.test.js:65–79  ·  view source on GitHub ↗
(key, type)

Source from the content-addressed store, hash-verified

63}
64
65function createMockFile (key, type)
66{
67 return {
68 key: key || 'testKey',
69 type: type || 'image',
70 state: CONST.FILE_PENDING,
71 crossOrigin: null,
72 hasCacheConflict: function () { return false; },
73 load: vi.fn(),
74 onProcess: vi.fn(),
75 addToCache: vi.fn(),
76 pendingDestroy: vi.fn(),
77 destroy: vi.fn()
78 };
79}
80
81describe('Phaser.Loader.LoaderPlugin', function ()
82{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…