How to Install and Uninstall libgmock-dev Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 16,2024

1. Install "libgmock-dev" package

Please follow the instructions below to install libgmock-dev on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install libgmock-dev

2. Uninstall "libgmock-dev" package

Please follow the instructions below to uninstall libgmock-dev on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove libgmock-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the libgmock-dev package on Ubuntu 21.10 (Impish Indri)

Package: libgmock-dev
Architecture: amd64
Version: 1.10.0.20201025-1.1
Multi-Arch: same
Priority: optional
Section: universe/libdevel
Source: googletest
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Steve M. Robbins
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 711
Depends: libgtest-dev (= 1.10.0.20201025-1.1)
Conflicts: googletest (<= 1.8.0-8)
Replaces: googletest (<= 1.8.0-8)
Filename: pool/universe/g/googletest/libgmock-dev_1.10.0.20201025-1.1_amd64.deb
Size: 118192
MD5sum: 98e6932ee745e4d78d08373469fc40cd
SHA1: 3c734d76e77dac83e73eb788ba7a793094bd09c7
SHA256: b4360e16fe7ffd8eba8c55e20769ec2c0e589bf584bff8d0110cb63a186eca81
SHA512: c3f7dda9dff9d0e28b91699e757fc1989c97a763d22aeae634f0bed856e78e70461bc289ba799e4c2061c5c341e86fe515f8c334f8cab9a2e4d3d1534decff0f
Homepage: https://github.com/google/googletest
Description-en: Google's framework for writing C++ tests
Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s
specifics in mind, it can help you derive better designs of your
system and write better tests.
.
Google Mock:
.
- provides a declarative syntax for defining mocks,
- can easily define partial (hybrid) mocks, which are a cross of real
and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay
needed),
- allows arbitrary (partial) ordering constraints on
function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Description-md5: 802e748703d8cf2b5fa2f078623e1006