{
  "_id": "6aae40dc3d719c1f8407a2c3",
  "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://nbenn.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-09-19 07:54:48 UTC",
    "User": "root"
  },
  "Author": "Nicolas Bennett [aut, cre]",
  "Maintainer": "Nicolas Bennett <nicolas.bennett@stat.math.ethz.ch>",
  "_user": "nbenn",
  "_type": "src",
  "_file": "mockthat_0.2.8.tar.gz",
  "_fileid": "https://r2.ropensci.org/6ff60fb496ad1f27103350937c764588a896f9a74f85521c7f609c7cb7befdd8",
  "_filesize": 101075,
  "_sha256": "6ff60fb496ad1f27103350937c764588a896f9a74f85521c7f609c7cb7befdd8",
  "_expires": "2026-12-28T07:59:23.000Z",
  "_created": "2026-09-19T07:54:48.000Z",
  "_published": "2026-09-19T07:59:24.871Z",
  "_jobs": [
    {
      "job": 105864358829,
      "time": 198,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10580492355"
    },
    {
      "job": 105864358883,
      "time": 183,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10580532271"
    },
    {
      "job": 105864358835,
      "time": 149,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10580313370"
    },
    {
      "job": 105864358836,
      "time": 121,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10580148388"
    },
    {
      "job": 105864042014,
      "time": 163,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10580846708"
    },
    {
      "job": 105864358802,
      "time": 96,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10580487315"
    },
    {
      "job": 105864358807,
      "time": 63,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10580083400"
    },
    {
      "job": 105864358808,
      "time": 57,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10580701978"
    },
    {
      "job": 105864358801,
      "time": 66,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10580826839"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/nbenn/actions/runs/35430474915",
  "_status": "success",
  "_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": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 14,
  "_contributors": [
    {
      "user": "nbenn",
      "count": 60,
      "uuid": 3158446
    },
    {
      "user": "zbjornson",
      "count": 1,
      "uuid": 469365
    }
  ],
  "_userbio": {
    "uuid": 3158446,
    "type": "user",
    "name": "Nicolas Bennett",
    "followers": 42
  },
  "_downloads": {
    "count": 534,
    "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,
  "_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": true,
  "_nocasepkg": "mockthat",
  "_universes": [
    "nbenn"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.8",
      "date": "2026-09-19T07:58:10.000Z",
      "distro": "resolute",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/871e48a559e15653be25d4c819fc52376539e4a97dce03a81bbca287bf642257",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nbenn/actions/runs/35430474915"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.8",
      "date": "2026-09-19T07:57:54.000Z",
      "distro": "resolute",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/96997ccd13ec8f0e5aed1e2523fd10ceb19a954d19caa95741adb75d752f0e37",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nbenn/actions/runs/35430474915"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.8",
      "date": "2026-09-19T07:58:17.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/05083a4b481f720c4369a101823916d56726d487409b9b640c70abba6f30628d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nbenn/actions/runs/35430474915"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.8",
      "date": "2026-09-19T07:58:39.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/cfd9921ce94ee13ad69605427ce6a5e32d56e875ba3b94fa096c7785031cc16d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nbenn/actions/runs/35430474915"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.8",
      "date": "2026-09-19T07:56:39.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/63efa1d66db48534413cb53445aa3520d6d7c5f139b1d1071b9414ccb522eb3e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/nbenn/actions/runs/35430474915"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-09-19T07:55:51.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/137e8fca5c8fa2c2b4076f1cdfd3b74bbe49f9e8d7496c6f095161608a8a995a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nbenn/actions/runs/35430474915"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-09-19T07:55:45.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/a657d73d7c18b5aaff4c4abda159c54061b8d995ed3c8c00e9fb24607940cd3b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nbenn/actions/runs/35430474915"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-09-19T07:55:57.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/dacf97679ddf3536b09427bb32c669f1f189a9b8598c174e296b29eabd375d4e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nbenn/actions/runs/35430474915"
    }
  ]
}