Running devtools::test() changes the list of exported functions.
> getNamespaceExports("my_package")
[1] "exported_1" "exported_2" ...
> devtools::test()
Loading my_package
Testing my_package
...
══ Results ══════════════════════════════════════════════════════════════════════════════════════
Duration: 0.4 s
OK: 93
Failed: 1
Warnings: 0
Skipped: 0
Your tests are shining!
... error info below ...
> getNamespaceExports("my_package")
[1] "exported_1" "exported_2" "unexported_1" "unexported_2" ...
Apologies for the lack of a repex, I wasn't sure on how to write one given the problem