Skip to main content
Module

x/denops_std/function/vim/mod.ts>test_alloc_fail

📚 Standard module for denops.vim
Go to Latest
function test_alloc_fail
import { test_alloc_fail } from "https://deno.land/x/denops_std@v6.4.0/function/vim/mod.ts";

This is for testing: If the memory allocation with {id} is called, then decrement {countdown}, and when it reaches zero let memory allocation fail {repeat} times. When {repeat} is smaller than one it fails one time.

Can also be used as a method:

GetAllocId()->test_alloc_fail()

Parameters

denops: Denops
id: unknown
countdown: unknown
repeat: unknown

Returns

Promise<void>