{
  "_id": "6a10337dacfb0bcc41c9857f",
  "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-05-12 08:14:41 UTC",
    "User": "root"
  },
  "Author": "Noam Finkelstein [aut],\nLukasz Bartnik [aut],\nJim Hester [aut],\nHadley Wickham [aut, cre]",
  "Maintainer": "Hadley Wickham <hadley@posit.co>",
  "MD5sum": "b3b9139786a7f344a5a319db474533e1",
  "_user": "r-lib",
  "_type": "src",
  "_file": "mockery_0.4.5.9000.tar.gz",
  "_fileid": "b54212f49ee14c2b068f27b5d5d3a6105c063d910ce41f2a39292a69490c73b5",
  "_filesize": 115975,
  "_sha256": "b54212f49ee14c2b068f27b5d5d3a6105c063d910ce41f2a39292a69490c73b5",
  "_created": "2026-05-12T08:14:41.000Z",
  "_published": "2026-05-22T10:44:13.423Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77364018731,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6939047475"
    },
    {
      "job": 77364019246,
      "time": 138,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939045806"
    },
    {
      "job": 77364018852,
      "time": 104,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6939032418"
    },
    {
      "job": 77364018793,
      "time": 133,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939041604"
    },
    {
      "job": 77364018578,
      "time": 208,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938998694"
    },
    {
      "job": 77364018239,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7158620141"
    },
    {
      "job": 77364018867,
      "time": 111,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6939034935"
    },
    {
      "job": 77364019124,
      "time": 83,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6939025998"
    },
    {
      "job": 77364019016,
      "time": 72,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939022801"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-lib/actions/runs/25721969071",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 4196
  },
  "_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"
  },
  "_downloads": {
    "count": 47576,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mockery"
  },
  "_devurl": "https://github.com/r-lib/mockery",
  "_searchresults": 655,
  "_rbuild": "4.6.0",
  "_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",
    "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",
    "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.330206500323653,
  "_indexed": true,
  "_nocasepkg": "mockery",
  "_universes": [
    "r-lib",
    "hadley"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.5.9000",
      "date": "2026-05-12T08:17:13.000Z",
      "distro": "noble",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "e7f9bd26c59c0a1b5a9f1c03d875ae29f66ac0525f69f71984359da9238b5b17",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/25721969071"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.5.9000",
      "date": "2026-05-12T08:17:10.000Z",
      "distro": "noble",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "1b8472083fd45089495786e443c043d62c6f5cc492e0ab51c81cc6b25ddbeca3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/25721969071"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.5.9000",
      "date": "2026-05-12T08:16:28.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "e5114a64226d817ee55bd9b8cb4819f6f2d4e5da5ba7a2c6790d99baf1313c16",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/25721969071"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.5.9000",
      "date": "2026-05-12T08:16:51.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "f0251901043df6d213ca14ad8c15a4bdd361331e3fdab49a22c77a3fa3be0668",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/25721969071"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-05-12T08:16:29.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "268505b214c36442085a542754888dcfe48059e3b094d9ea97ef576fd433a620",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/25721969071"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-05-12T08:16:02.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "b82f3f2adb5495848f87bb7a93638cd91aeb1a29694e43513daa18718aca4e76",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/25721969071"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-05-12T08:15:50.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "94f7259f3b039876a67fbfd891f07bef0124c4d24f526536fff6b0ffa5c533c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/25721969071"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.5.9000",
      "date": "2026-05-22T10:43:54.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "33e9deaf019dd64537b971c54ce8b11b126dcd8d03790bdb530ba5aba1b69307",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/25721969071"
    }
  ]
}