tests/testthat/_snaps/gitr-commit.md

scrape_commits() returns expected (must execute after above)

Code
  commit <- scrape_commits(1L)
Message
  • Scraping 1 commit messages
  ✓ Found 1 NEWS-worthy entry
Code
  clean_commit_sha(commit)
Output
  $abc1234
  [1] "Added new empty commit to repo" ""                              
  [3] "- and here are some details"    ""                              
  attr(,"sha")
  [1] "abc1234"
  attr(,"author")
  [1] "whitewizard@middleearth.com"

gitr_diff_commits() returns correct output diffing a recent commit

Code
  gitr_diff_commits()
Output
  diff --git a/gitr-diffcommit-file b/gitr-diffcommit-file
  new file mode 100644
  index 0000000..9f5cfa2
  --- /dev/null
  +++ b/gitr-diffcommit-file
  @@ -0,0 +1,3 @@
  +This is a unit test for `gitr_diffcommit()`.
  +
  +This file should be deleted following unit test cleanup.


Try the gitr package in your browser

Any scripts or data that you put into this service are public.

gitr documentation built on June 8, 2025, 10:24 a.m.