Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

program is grabbing the non mocked class as opposed to the mocked class #75

Closed
zichaelpath opened this issue Jun 21, 2019 · 1 comment
Closed

Comments

@zichaelpath
Copy link

Hi there,
First of, let me just say that your program has made my job MUCH easier over the past month since I started using it, so kudos to you. I'm having an issue where I have created a mocked class and am attempting to use the mocked class in a unit test, however the test environment keeps using the base class. I have attempted to create the mock class in two ways:

  1. using MOCK_BASE_CLASS
  2. creating the class normally, but calling MOCK_METHOD for each function I am mocking
    I have done this for several other classes and those mock objects still work perfectly fine, however this class is behaving strangely. Do you have any advice on how to proceed?
@mat007
Copy link
Owner

mat007 commented Jun 21, 2019

Hi!

Can you make a minimal reproducible case that I can take a look at?

Thanks!

@mat007 mat007 closed this as completed Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants