{
  "_id": "6a2a6ffb7b7a29ca6004367c",
  "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-06-11 08:18:39 UTC",
    "User": "root"
  },
  "Author": "Noam Finkelstein [aut],\nLukasz Bartnik [aut],\nJim Hester [aut],\nHadley Wickham [aut, cre]",
  "Maintainer": "Hadley Wickham <hadley@posit.co>",
  "MD5sum": "2d0f0f1aa6c037e1236b5f77dbc1a306",
  "_user": "r-lib",
  "_type": "src",
  "_file": "mockery_0.4.5.9000.tar.gz",
  "_fileid": "97924adc511f4c6baf44bee042d261650e4743a5cd55edc3c052bbded639cc37",
  "_filesize": 114078,
  "_sha256": "97924adc511f4c6baf44bee042d261650e4743a5cd55edc3c052bbded639cc37",
  "_created": "2026-06-11T08:18:39.000Z",
  "_published": "2026-06-11T08:21:15.534Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80752010579,
      "time": 123,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7558627327"
    },
    {
      "job": 80752010241,
      "time": 123,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558627167"
    },
    {
      "job": 80752010272,
      "time": 88,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7558613959"
    },
    {
      "job": 80752010258,
      "time": 74,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558609115"
    },
    {
      "job": 80751509932,
      "time": 169,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558581570"
    },
    {
      "job": 80752010376,
      "time": 104,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558620011"
    },
    {
      "job": 80752010296,
      "time": 85,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7558612654"
    },
    {
      "job": 80752010365,
      "time": 67,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7558606515"
    },
    {
      "job": 80752010289,
      "time": 76,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558609571"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-lib/actions/runs/27333460801",
  "_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",
    "description": "Chief Scientist at @posit-pbc",
    "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": 58721,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mockery"
  },
  "_devurl": "https://github.com/r-lib/mockery",
  "_searchresults": 844,
  "_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",
    "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.531713164334535,
  "_indexed": true,
  "_nocasepkg": "mockery",
  "_universes": [
    "r-lib",
    "hadley"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.5.9000",
      "date": "2026-06-11T08:20:39.000Z",
      "distro": "noble",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "6858168b1eedaadd837464a636353abb4dbbc80acf7609a186f0960225278360",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/27333460801"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.5.9000",
      "date": "2026-06-11T08:20:38.000Z",
      "distro": "noble",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "b7b74e55592e97e93978bd076966c0058f08959f63918afe286cf6a61f0e08df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/27333460801"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.5.9000",
      "date": "2026-06-11T08:20:07.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "1641179bfa3ff97620d64f24b7e6ce1a1f7f874aa5e30261c3eb7c1a248661f2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/27333460801"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.5.9000",
      "date": "2026-06-11T08:19:55.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "74fdf5fbb938d6ecf4bad3183f76c34c8dab72baa302f84099aa9f42b4ee460a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/27333460801"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.5.9000",
      "date": "2026-06-11T08:20:35.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "93c9fec2beb7390f081f9dbe3b13e0c7d528fd450486a837bfb9cd62003ca661",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/27333460801"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-06-11T08:19:56.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "d5d8b03724a936fd09f364f72a27f3dd5e1d45ec85a703a254ec0328743df053",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/27333460801"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-06-11T08:19:39.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "40fca8e4cfd9c1317669860a4a19e05033b9c1f8dbda8a58abccacd022e7264a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/27333460801"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-06-11T08:19:49.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "04fb4340e66aa7a4427057b2149e9fac305a5c7785c2194ee7bdf2e492cfe0a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/27333460801"
    }
  ]
}