Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要用 googletest 一个函数进行测试:
void SomeClass::changeSomething(QWheelEvent *event) { if (event->delta() > 0) { _data += _increment; } else { _data -= _increment; } }
我如何伪造这个事件以通过测试?