From c3e92c161d6394d126a334011526c02e8c3f655f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 23 Mar 2019 14:23:07 +0100 Subject: patch 8.1.1044: no way to check the reference count of objects Problem: No way to check the reference count of objects. Solution: Add test_refcount(). (Ozaki Kiichi, closes #4124) --- runtime/doc/eval.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index fe10e34466..6238723268 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2672,6 +2672,7 @@ test_null_partial() Funcref null value for testing test_null_string() String null value for testing test_option_not_set({name}) none reset flag indicating option was set test_override({expr}, {val}) none test with Vim internal overrides +test_refcount({expr}) Number get the reference count of {expr} test_scrollbar({which}, {value}, {dragging}) none scroll in the GUI for testing test_settime({expr}) none set current time for testing @@ -9589,6 +9590,11 @@ test_override({name}, {val}) *test_override()* < The value of "starting" is saved. It is restored by: > call test_override('starting', 0) +test_refcount({expr}) *test_refcount()* + Return the reference count of {expr}. When {expr} is of a + type that does not have a reference count, returns -1. Only + to be used for testing. + test_scrollbar({which}, {value}, {dragging}) *test_scrollbar()* Pretend using scrollbar {which} to move it to position {value}. {which} can be: -- cgit v1.2.3