{
  "_id": "6abb74cc99f7aa8c6aa44559",
  "Package": "mockery",
  "Title": "Mocking Library for R",
  "Version": "0.4.5.9000",
  "Authors@R": "c(\nperson(\"Noam\", \"Finkelstein\", role = \"aut\"),\nperson(\"Lukasz\", \"Bartnik\", role = \"aut\"),\nperson(\"Jim\", \"Hester\", role = \"aut\"),\nperson(\"Hadley\", \"Wickham\", , \"hadley@posit.co\", role = c(\"aut\", \"cre\"))\n)",
  "Description": "The two main functionalities of this package are creating\nmock objects (functions) and selectively intercepting calls to\na given function that originate in some other function. It can\nbe used with any testing framework available for R. Mock\nobjects can be injected with either this package's own stub()\nfunction or a similar with_mocked_binding() facility present in\nthe 'testthat' package.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/r-lib/mockery",
  "BugReports": "https://github.com/r-lib/mockery/issues",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2.9000",
  "Collate": "'expectations.R' 'mockery.R' 'mock-object.R' 'stub.R'",
  "Config/pak/sysreqs": "libuv1-dev",
  "Repository": "https://r-lib.r-universe.dev",
  "Date/Publication": "2025-09-04 12:24:59 UTC",
  "RemoteUrl": "https://github.com/r-lib/mockery",
  "RemoteRef": "HEAD",
  "RemoteSha": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-29 08:17:27 UTC",
    "User": "root"
  },
  "Author": "Noam Finkelstein [aut],\nLukasz Bartnik [aut],\nJim Hester [aut],\nHadley Wickham [aut, cre]",
  "Maintainer": "Hadley Wickham <hadley@posit.co>",
  "_user": "r-lib",
  "_type": "src",
  "_file": "mockery_0.4.5.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/0a89c57d61384cec771ed1b9193feeb9dbb2e9997fdb3edb85768f902c9c1d30",
  "_filesize": 115236,
  "_sha256": "0a89c57d61384cec771ed1b9193feeb9dbb2e9997fdb3edb85768f902c9c1d30",
  "_expires": "2027-01-07T08:20:26.000Z",
  "_created": "2026-09-29T08:17:27.000Z",
  "_published": "2026-09-29T08:20:28.637Z",
  "_jobs": [
    {
      "job": 109318806376,
      "time": 142,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11020593769"
    },
    {
      "job": 109318806456,
      "time": 137,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11020343361"
    },
    {
      "job": 109318806466,
      "time": 97,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11020588608"
    },
    {
      "job": 109318806297,
      "time": 86,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11020363256"
    },
    {
      "job": 109317696001,
      "time": 193,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11020083389"
    },
    {
      "job": 109318806394,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11020952593"
    },
    {
      "job": 109318806399,
      "time": 65,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11020098599"
    },
    {
      "job": 109318806300,
      "time": 67,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11020942710"
    },
    {
      "job": 109318806289,
      "time": 83,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11020328231"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/r-lib/actions/runs/36541442527",
  "_status": "success",
  "_upstream": "https://github.com/r-lib/mockery",
  "_commit": {
    "id": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
    "author": "Hadley Wickham <h.wickham@gmail.com>",
    "committer": "Hadley Wickham <h.wickham@gmail.com>",
    "message": "Increment version number to 0.4.5.9000\n",
    "time": 1756988699
  },
  "_maintainer": {
    "name": "Hadley Wickham",
    "email": "hadley@posit.co",
    "login": "hadley",
    "bluesky": "@hadley.nz",
    "description": "Chief Scientist at @posit-pbc",
    "uuid": 4196
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6",
      "role": "Depends"
    },
    {
      "package": "testthat",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "R6",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "version": ">= 1.0",
      "role": "Suggests"
    }
  ],
  "_owner": "r-lib",
  "_selfowned": true,
  "_usedby": 4,
  "_updates": [],
  "_tags": [],
  "_stars": 104,
  "_contributors": [
    {
      "user": "n-s-f",
      "count": 25,
      "uuid": 209666770
    },
    {
      "user": "jimhester",
      "count": 19,
      "uuid": 205275
    },
    {
      "user": "lbartnik",
      "count": 19,
      "uuid": 5261280
    },
    {
      "user": "hadley",
      "count": 18,
      "uuid": 4196
    },
    {
      "user": "lbartnikmsft",
      "count": 8,
      "uuid": 30093106
    },
    {
      "user": "nsfinkelstein",
      "count": 4,
      "uuid": 2919482
    },
    {
      "user": "damianooldoni",
      "count": 1,
      "uuid": 33662631
    },
    {
      "user": "dbast",
      "count": 1,
      "uuid": 2790401
    },
    {
      "user": "frbl",
      "count": 1,
      "uuid": 617574
    },
    {
      "user": "michaelchirico",
      "count": 1,
      "uuid": 7606389
    },
    {
      "user": "sambrightman",
      "count": 1,
      "uuid": 536652
    },
    {
      "user": "kjohnsen",
      "count": 1,
      "uuid": 19983357
    }
  ],
  "_userbio": {
    "uuid": 22618716,
    "type": "organization",
    "name": "R infrastructure",
    "followers": 768
  },
  "_downloads": {
    "count": 60926,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mockery"
  },
  "_devurl": "https://github.com/r-lib/mockery",
  "_searchresults": 9,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/mockery.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/r-lib/mockery",
  "_realowner": "r-lib",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.0",
      "date": "2016-10-25"
    },
    {
      "version": "0.3.0",
      "date": "2016-12-16"
    },
    {
      "version": "0.4.0",
      "date": "2017-11-07"
    },
    {
      "version": "0.4.1",
      "date": "2017-11-10"
    },
    {
      "version": "0.4.1.1",
      "date": "2018-08-19"
    },
    {
      "version": "0.4.2",
      "date": "2019-09-03"
    },
    {
      "version": "0.4.3",
      "date": "2022-02-20"
    },
    {
      "version": "0.4.4",
      "date": "2023-09-26"
    },
    {
      "version": "0.4.5",
      "date": "2025-09-04"
    }
  ],
  "_exports": [
    "expect_args",
    "expect_call",
    "expect_called",
    "mock",
    "mock_args",
    "mock_calls",
    "stub"
  ],
  "_help": [
    {
      "page": "mockery-package",
      "title": "R package to make mocking easier",
      "topics": [
        "mockery-package",
        "mockery"
      ]
    },
    {
      "page": "call-expectations",
      "title": "Expectation: does the given call match the expected?",
      "topics": [
        "call-expectations",
        "expect_args",
        "expect_call",
        "expect_called"
      ]
    },
    {
      "page": "mock",
      "title": "Create and query a mocked function.",
      "topics": [
        "length.mock",
        "mock",
        "mock_args",
        "mock_calls"
      ]
    },
    {
      "page": "stub",
      "title": "Replace a function with a stub.",
      "topics": [
        "stub"
      ]
    }
  ],
  "_readme": "https://github.com/r-lib/mockery/raw/HEAD/README.md",
  "_rundeps": [
    "brio",
    "callr",
    "cli",
    "crayon",
    "desc",
    "diffobj",
    "evaluate",
    "fs",
    "glue",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "otel",
    "pkgbuild",
    "pkgload",
    "praise",
    "processx",
    "ps",
    "R6",
    "rlang",
    "rprojroot",
    "testthat",
    "waldo",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "mocks-and-testthat.Rmd",
      "filename": "mocks-and-testthat.html",
      "title": "Mocks: Integrating with testthat",
      "author": "Lukasz A. Bartnik",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Mocks",
        "Creating a mock function",
        "Return values",
        "Cycling through return values",
        "Evaluating expression in an environment of choice",
        "Integration with with_mocked_bindings()",
        "Simple integration",
        "Verifying the number of calls",
        "Verify the call signature",
        "Verify values of argument",
        "Further reading"
      ],
      "created": "2016-10-21 15:14:32",
      "modified": "2025-09-03 19:57:26",
      "commits": 6
    }
  ],
  "_score": 9.62137994098494,
  "_indexed": true,
  "_nocasepkg": "mockery",
  "_universes": [
    "r-lib",
    "hadley"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.5.9000",
      "date": "2026-09-29T08:19:44.000Z",
      "distro": "resolute",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/9dceb67ee16a8f4e2f8bee8ce0961a3d3dc1ef88abf8422f0ca9a09ef52f824b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/36541442527"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.5.9000",
      "date": "2026-09-29T08:19:41.000Z",
      "distro": "resolute",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/f0dfe72866bb8e8a5fd93041d41f47bc918b9fbd9a97dc0fbdfde6d81cdcb4a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/36541442527"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.5.9000",
      "date": "2026-09-29T08:19:10.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/16706e009ef32d17fbe5e434e997e4f736bd58f33dfdaa8a1d7da2dbb1ebbe9a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/36541442527"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.5.9000",
      "date": "2026-09-29T08:19:01.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/d3158c9be8b7219b9b94c598037241d6e745dc592a2334264c0c75a095086c94",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/36541442527"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.5.9000",
      "date": "2026-09-29T08:19:44.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/1aec4ceac14e7af262ae771e27da1cc81fe8d773f7166fd815befae1776ba908",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/36541442527"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-09-29T08:18:27.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/e8808df011b2b2befdd1f71a4d27e56d0957c4e331ef96a0c2be7eddbc1ae121",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/36541442527"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-09-29T08:18:29.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/f3b1a8f52090285bcc0ea2e777c689883c622a032271b0787b59c661d2c539d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/36541442527"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-09-29T08:18:41.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/11979e4f05a95beda98f34b459c4f18ec4a5c8340b8ed967ebeafbf34d8b7d25",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/36541442527"
    }
  ]
}