summaryrefslogtreecommitdiff
path: root/src/testing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing.c')
-rw-r--r--src/testing.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testing.c b/src/testing.c
index 8a64ce85e..81e17622d 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -883,6 +883,13 @@ f_test_null_list(typval_T *argvars UNUSED, typval_T *rettv)
}
void
+f_test_null_function(typval_T *argvars UNUSED, typval_T *rettv)
+{
+ rettv->v_type = VAR_FUNC;
+ rettv->vval.v_string = NULL;
+}
+
+ void
f_test_null_partial(typval_T *argvars UNUSED, typval_T *rettv)
{
rettv->v_type = VAR_PARTIAL;