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

Add support for unretained and unsafeunretained arguments for stubs. #419

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Feb 15, 2021

  1. Add OCMIsEqualConstraint

    dmaclach committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    0553323 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2b6f0c8 View commit details
    Browse the repository at this point in the history
  3. Remove +constraint method

    Most constraints now require init values, so having `+constraint` is relatively useless.
    dmaclach committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    da28d71 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c34a820 View commit details
    Browse the repository at this point in the history
  5. Add support for controlling retain/copy semantics for arguments to st…

    …ubs.
    
    Allows marking an argument in a stub as having various semantics:
      - is not retained by invocations
        Object arguments are retained by default in OCMock. In some cases to avoid retain
        loops you need to mark an argument as unretained.
      - is not retained by stub
        Stub arguments are retained by default in OCMock. In some specialized cases you
        do not want the stub arguments retained
      - is copied by invocation
        Some arguments have copy semantics and we need the invocation to copy the argument
        instead of retain it.
    dmaclach committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    a22241f View commit details
    Browse the repository at this point in the history