mock.getter(object, methodName[, implementation][, options])


此函数是 MockTracker.method 的语法糖,options.getter 设置为 true

This function is syntax sugar for MockTracker.method with options.getter set to true.