StoryNote logo

How are we properly testing something if by mocking it's functionality we return set values So I'm really new to all this including testing. I'm wondering what is the point of mocking a software function. How does mocking work and why do we use it?

by /u/TheExorcisst in /r/coding

Upvotes: 3

Favorite this post:
Mark as read:
Your rating:
Add this post to a custom list

StoryNote©

Reddit is a registered trademark of Reddit, Inc. Use of this trademark on our website does not imply any affiliation with or endorsement by Reddit, Inc.