{
  "_id": "6a55c1eaff0138dec5d6889a",
  "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-07-14 04:55:47 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/49df875616fd415a40b3313e9df6c0ef89431a6bb8f6ab86728814173c0f6f71",
  "_filesize": 102578,
  "_sha256": "49df875616fd415a40b3313e9df6c0ef89431a6bb8f6ab86728814173c0f6f71",
  "_expires": "2026-10-22T04:58:16.000Z",
  "_created": "2026-07-14T04:55:47.000Z",
  "_published": "2026-07-14T04:58:17.896Z",
  "_jobs": [
    {
      "job": 87002885734,
      "time": 108,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8300678715"
    },
    {
      "job": 87002885771,
      "time": 114,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8300680017"
    },
    {
      "job": 87002885752,
      "time": 70,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8300668422"
    },
    {
      "job": 87002885820,
      "time": 82,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8300672370"
    },
    {
      "job": 87002535343,
      "time": 161,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8300651524"
    },
    {
      "job": 87002885783,
      "time": 89,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8300674226"
    },
    {
      "job": 87002885780,
      "time": 79,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8300671940"
    },
    {
      "job": 87002885754,
      "time": 80,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8300671749"
    },
    {
      "job": 87002885766,
      "time": 63,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8300667518"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cynkra/actions/runs/29307068160",
  "_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": 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": 124,
    "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": 750,
    "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/mockthat.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_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-07-14T04:57:41.000Z",
      "distro": "resolute",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/bcb7458834562410fca6cc2e9cd6ad9cc1959d0a71b939101d9bfacec251311a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/29307068160"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.8",
      "date": "2026-07-14T04:57:45.000Z",
      "distro": "resolute",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/498da33e9823a2701460c60c270c2d1be69e793e483f07221d2d129cb5f6cb10",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/29307068160"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.8",
      "date": "2026-07-14T04:57:02.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/41727dbef404a6c0be0cb555bfc3bbacd34f314a81c258388bcb1acad62d3510",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/29307068160"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.8",
      "date": "2026-07-14T04:57:16.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/5f388d05d084492f2fdea8ed10c3d97bb728e951a097153d494953020510e8c0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/29307068160"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.8",
      "date": "2026-07-14T04:57:31.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/6c09fe6ea8f98f5edfa24f843654abd0e03117a18cf12d0d07d42dbde03c25eb",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/29307068160"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-07-14T04:57:07.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/2c71a5848d5f2d862bcd3e709bc4e3d8abf1ad890420592694175a92db1d98a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/29307068160"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-07-14T04:57:09.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/e370512076c8f481fc268e5c39e15a94301c2cd8665b4f359d2262bb9d675d37",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/29307068160"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-07-14T04:56:50.000Z",
      "commit": "4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2",
      "fileid": "https://r2.ropensci.org/bc8b161357d1c1e922d7e7722e7998d23e177160bc1dd680db6b44e5512629f5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cynkra/actions/runs/29307068160"
    }
  ]
}