{
  "_id": "6acc9d2da14063b82c3a6dd2",
  "Package": "mockthat",
  "Title": "Function Mocking for Unit Testing",
  "Version": "0.2.8",
  "Authors@R": "person(given = \"Nicolas\",\nfamily = \"Bennett\",\nrole = c(\"aut\", \"cre\"),\nemail = \"nicolas.bennett@stat.math.ethz.ch\")",
  "Description": "With the deprecation of mocking capabilities shipped with\n'testthat' as of 'edition 3' it is left to third-party packages\nto replace this functionality, which in some test-scenarios is\nessential in order to run unit tests in limited environments\n(such as no Internet connection). Mocking in this setting means\ntemporarily substituting a function with a stub that acts in\nsome sense like the original function (for example by serving a\nHTTP response that has been cached as a file). The only\nexported function 'with_mock()' is modeled after the eponymous\n'testthat' function with the intention of providing a drop-in\nreplacement.",
  "License": "MIT + file LICENSE",
  "URL": "https://nbenn.github.io/mockthat/",
  "BugReports": "https://github.com/nbenn/mockthat/issues",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.1",
  "Repository": "https://cynkra.r-universe.dev",
  "Date/Publication": "2022-10-31 13:04:50 UTC",
  "RemoteUrl": "https://github.com/nbenn/mockthat",
  "RemoteRef": "HEAD",
  "RemoteSha": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-12 08:38:57 UTC",
    "User": "root"
  },
  "Author": "Nicolas Bennett [aut, cre]",
  "Maintainer": "Nicolas Bennett <nicolas.bennett@stat.math.ethz.ch>",
  "_user": "cynkra",
  "_type": "src",
  "_file": "mockthat_0.2.8.tar.gz",
  "_fileid": "https://r2.ropensci.org/1b8d7a7c7aaa63bcc2dea113795240b48e351da71e264a1c815c2d75777a6a4b",
  "_filesize": 100765,
  "_sha256": "1b8d7a7c7aaa63bcc2dea113795240b48e351da71e264a1c815c2d75777a6a4b",
  "_expires": "2027-01-20T08:41:15.000Z",
  "_created": "2026-10-12T08:38:57.000Z",
  "_published": "2026-10-12T08:41:17.581Z",
  "_buildurl": "https://github.com/r-universe/cynkra/actions/runs/38224522563",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114729850183,
      "time": 97,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11735674968"
    },
    {
      "job": 114729850126,
      "time": 92,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11736045575"
    },
    {
      "job": 114729850165,
      "time": 94,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11736125408"
    },
    {
      "job": 114729850195,
      "time": 64,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11736395233"
    },
    {
      "job": 114728751619,
      "time": 190,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11735694603"
    },
    {
      "job": 114729850098,
      "time": 86,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11736450253"
    },
    {
      "job": 114729850294,
      "time": 72,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11736450208"
    },
    {
      "job": 114729850046,
      "time": 59,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11735920500"
    },
    {
      "job": 114729850037,
      "time": 55,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11735830667"
    }
  ],
  "_upstream": "https://github.com/nbenn/mockthat",
  "_commit": {
    "id": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
    "author": "Nicolas Bennett <3158446+nbenn@users.noreply.github.com>",
    "committer": "Nicolas Bennett <3158446+nbenn@users.noreply.github.com>",
    "message": "fix cran feedback\n",
    "time": 1667221490
  },
  "_maintainer": {
    "name": "Nicolas Bennett",
    "email": "nicolas.bennett@stat.math.ethz.ch",
    "login": "nbenn",
    "description": "",
    "uuid": 3158446
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.3.0",
      "role": "Depends"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "pkgload",
      "role": "Suggests"
    },
    {
      "package": "curl",
      "role": "Suggests"
    },
    {
      "package": "jsonlite",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "nbenn",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 14,
  "_contributors": [
    {
      "user": "nbenn",
      "count": 60,
      "uuid": 3158446
    },
    {
      "user": "zbjornson",
      "count": 1,
      "uuid": 469365
    }
  ],
  "_userbio": {
    "uuid": 38209788,
    "type": "organization",
    "name": "cynkra",
    "followers": 126,
    "description": "We support your business and the people behind it by helping you pick the right tools, implementing and supporting solutions, training and code review."
  },
  "_downloads": {
    "count": 593,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mockthat"
  },
  "_devurl": "https://github.com/nbenn/mockthat",
  "_pkgdown": "https://nbenn.github.io/mockthat/",
  "_searchresults": 5,
  "_metadata": {
    "category": "Development",
    "cynkra_team_members": "nicolas"
  },
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/mockthat.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/nbenn/mockthat",
  "_realowner": "nbenn",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.4",
      "date": "2020-12-09"
    },
    {
      "version": "0.2.6",
      "date": "2021-04-23"
    },
    {
      "version": "0.2.8",
      "date": "2022-11-01"
    }
  ],
  "_exports": [
    "local_mock",
    "mock",
    "mock_arg",
    "mock_args",
    "mock_call",
    "mock_n_called",
    "with_mock"
  ],
  "_help": [
    {
      "page": "helpers",
      "title": "Mocking helper functions",
      "topics": [
        "mock",
        "mock_arg",
        "mock_args",
        "mock_call",
        "mock_n_called"
      ]
    },
    {
      "page": "mock",
      "title": "Mock functions in a package.",
      "topics": [
        "local_mock",
        "with_mock"
      ]
    }
  ],
  "_readme": "https://github.com/nbenn/mockthat/raw/HEAD/README.md",
  "_rundeps": [
    "rlang"
  ],
  "_score": 3.845098040014257,
  "_indexed": false,
  "_nocasepkg": "mockthat",
  "_universes": [
    "cynkra"
  ],
  "_indexurl": "https://nbenn.r-universe.dev/mockthat",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.8",
      "date": "2026-10-12T08:40:43.000Z",
      "distro": "resolute",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/aa180024cc57cad5fa9c8b375544d7bf1ade341ba29ec3dd78d17f766145800d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/38224522563"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.8",
      "date": "2026-10-12T08:40:38.000Z",
      "distro": "resolute",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/125f608914317cb1ebcfbdf6a82e061b04541415ea2b1227db26f9dcbc03643b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/38224522563"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.8",
      "date": "2026-10-12T08:40:49.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/096e467679aa7cba04104d7f8055797a7941596a808c3d0959214421ca3f1321",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/38224522563"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.8",
      "date": "2026-10-12T08:40:18.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/70ea26e59fe74db5fed055f364eeb9285e49c444d16b6dbd32234b8238669608",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/38224522563"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.8",
      "date": "2026-10-12T08:40:41.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/025f67029c1c264a2a1f6188c404f93b8217802d92ddbabc2d36ba898dbeeca9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/38224522563"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-10-12T08:40:14.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/b7b42c7ec50ac5d44f38f278b69c9d6a618e842b62b1272599b993e475730768",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/38224522563"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-10-12T08:40:03.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/12d43b5c4f2302b04bf2849587311171c34445947fdc3c6ab67756a74f916f17",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/38224522563"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-10-12T08:39:59.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/313b2e12cd7f2a47c0797458baf18047a606e44053c3c13eeff034bec8a5981f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/38224522563"
    }
  ]
}