{
  "_id": "6ae303423d0f299392dd075a",
  "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-10-29 08:23:51 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/dcade188961853f92aa43ceed360a58fa075f06fa06ba3e4cd635d70b333662d",
  "_filesize": 114575,
  "_sha256": "dcade188961853f92aa43ceed360a58fa075f06fa06ba3e4cd635d70b333662d",
  "_expires": "2027-02-06T08:26:41.000Z",
  "_created": "2026-10-29T08:23:51.000Z",
  "_published": "2026-10-29T08:26:42.669Z",
  "_upstream": "https://github.com/r-lib/mockery",
  "_status": "success",
  "_maintainer": {
    "name": "Hadley Wickham",
    "email": "hadley@posit.co",
    "login": "hadley",
    "bluesky": "@hadley.nz",
    "description": "Chief Scientist at @posit-pbc",
    "uuid": 4196
  },
  "_jobs": [
    {
      "job": 123339888357,
      "time": 110,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12883431480"
    },
    {
      "job": 123339888471,
      "time": 109,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12882967783"
    },
    {
      "job": 123339888449,
      "time": 88,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12883291761"
    },
    {
      "job": 123339888407,
      "time": 83,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12883351374"
    },
    {
      "job": 123338546778,
      "time": 206,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12882882698"
    },
    {
      "job": 123339888467,
      "time": 90,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12882244732"
    },
    {
      "job": 123339888464,
      "time": 74,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12882484295"
    },
    {
      "job": 123339888389,
      "time": 74,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12883695135"
    },
    {
      "job": 123339888476,
      "time": 66,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12883725120"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-lib/actions/runs/40841405270",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 773
  },
  "_downloads": {
    "count": 57440,
    "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.595791706074891,
  "_indexed": true,
  "_nocasepkg": "mockery",
  "_universes": [
    "r-lib",
    "hadley"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.5.9000",
      "date": "2026-10-29T08:25:40.000Z",
      "distro": "resolute",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/b6bfb52f4168095ee5dc9abbf7466754868dabc6aa4f61f36fed0391dcfed2ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/40841405270"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.5.9000",
      "date": "2026-10-29T08:25:40.000Z",
      "distro": "resolute",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/40a2a55a0cbd05557d21c1dbdba3741a5e6b8d5ecd5e1006f5308b3233dba621",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/40841405270"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.5.9000",
      "date": "2026-10-29T08:26:13.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/4ded49362bc07814f7cff3f0319b737ac854964d2770b55e82db4e677a4c11a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/40841405270"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.5.9000",
      "date": "2026-10-29T08:25:46.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/8e6af426d01b354ecb94fb4d35bb5e53287265c5c3c38de331702a51f29dce29",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/40841405270"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.5.9000",
      "date": "2026-10-29T08:25:36.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/f2e91fa3f56a8f9adf9abec1cc39b0f53badc54877b4e9ee162da97a0163db83",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/40841405270"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-10-29T08:24:59.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/320102afe2cc7e536f199daaa37a536552e9a1f297fe01a0113eab2ec4d5e6c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/40841405270"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-10-29T08:25:00.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/f1488f1e3046e11a41e9e3980e38016c209a7e802b9531feb2ede13c559f4793",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/40841405270"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.5.9000",
      "date": "2026-10-29T08:24:53.000Z",
      "commit": "ede3789ae1a4e4117a04c0a6015a03b3c4773bf0",
      "fileid": "https://r2.ropensci.org/a592eb2fa1f3859f6942d1be98e24110025beecf55a94a8eb0bf1dd2687392ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-lib/actions/runs/40841405270"
    }
  ]
}