{
  "_id": "6a44ed8d6ff6f2357551f106",
  "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-07-01 10:16:39 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/e0fa484256049671ea6f4b58d95351a5b5b7a4a615d10f41f582eeeb628af897",
  "_filesize": 117248,
  "_sha256": "e0fa484256049671ea6f4b58d95351a5b5b7a4a615d10f41f582eeeb628af897",
  "_expires": "2026-10-09T10:35:57.000Z",
  "_created": "2026-07-01T10:16:39.000Z",
  "_published": "2026-07-01T10:35:57.629Z",
  "_jobs": [
    {
      "job": 84508894477,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8006938105"
    },
    {
      "job": 84508894382,
      "time": 124,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8006938764"
    },
    {
      "job": 84508894392,
      "time": 114,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8007332845"
    },
    {
      "job": 84508894450,
      "time": 79,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8007322455"
    },
    {
      "job": 84508255350,
      "time": 211,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8006889390"
    },
    {
      "job": 84508894334,
      "time": 104,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8006930734"
    },
    {
      "job": 84508894508,
      "time": 84,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8006923869"
    },
    {
      "job": 84508894457,
      "time": 74,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8006920345"
    },
    {
      "job": 84508894495,
      "time": 94,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8006927248"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/r-lib/actions/runs/28510144945",
  "_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": [
    {
      "week": "2025-36",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v0.4.5",
      "date": "2025-09-03"
    }
  ],
  "_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": 740
  },
  "_downloads": {
    "count": 65822,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mockery"
  },
  "_devurl": "https://github.com/r-lib/mockery",
  "_searchresults": 836,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mockery.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_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": 11.577154626466637,
  "_indexed": true,
  "_nocasepkg": "mockery",
  "_universes": [
    "r-lib",
    "hadley"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.5.9000",
      "date": "2026-07-01T10:18:42.000Z",
      "distro": "resolute",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/56b4116e0d1c89abf7abb954f04b3bb9e7ac3509d8616b8de90400c920bb92da",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/28510144945"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.5.9000",
      "date": "2026-07-01T10:18:44.000Z",
      "distro": "resolute",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/ca3c34c4038ae697425611e36bd25a4f68a98adab5ff4a0c77b1e8a1d4170c31",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/28510144945"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.5.9000",
      "date": "2026-07-01T10:35:22.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/5353f5911b733c031f5d85f614f4538efb7c55cbadc256de3e73ce5b46149b39",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/28510144945"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.5.9000",
      "date": "2026-07-01T10:35:00.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/24a45bc72ee71f37d18326335b6d6cbcabe1f7497ea10f7a9f395802ef756c0d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/28510144945"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.5.9000",
      "date": "2026-07-01T10:18:37.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/f3cc3382396c2f2150ceca4ab5a4ddaebb8f34478139bac2ce00a29d78750908",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/28510144945"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-07-01T10:18:01.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/d7bfc7de1aea00e935e08447ec796329ce873b6ec291cdb790e52e727967f2c9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/28510144945"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-07-01T10:17:53.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/77a200042c39ea14adfec293c8f65dd68f2345606b43aa0c6298187c5ec74f4c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/28510144945"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-07-01T10:18:08.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/731b96e000008bb45e757868b5ee24a6301d4c1fa5295cd08fe19514c8b42e25",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/28510144945"
    }
  ]
}