i5-add-tests (part 4) #10

Merged
kemitix merged 39 commits from i5-add-tests into main 2023-08-05 06:50:01 +01:00

39 commits

Author SHA1 Message Date
3c10d291d2 Merge branch 'main' into i5-add-tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
* main:
  i5-add-tests (part 3) (#9)
2023-08-04 20:10:03 +01:00
04499dd10d complete test for run
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-08-04 19:57:14 +01:00
a21f2e0719 history file opens file or fails 2023-08-04 19:43:50 +01:00
bf044bd7c8 create failing test for run 2023-08-04 18:35:58 +01:00
5ab011438e added mock_network_download_as_mp3 2023-08-04 07:47:54 +01:00
e44da378c6 mock_fetch_as_text_with_rss_url takes a map of responses 2023-08-04 07:45:05 +01:00
2a3c6b5be0 rename stubs and implement mocks 2023-08-04 07:29:06 +01:00
d5b54a75d3 add test_util stubs for file open and append_line 2023-07-30 15:30:09 +01:00
fede0eebf1 conver File Results into crate Results 2023-07-30 15:29:49 +01:00
34fe4da417 box up FileEnv's functions 2023-07-30 15:08:26 +01:00
e54c136f5a use a function generators for NetworkEnv 2023-07-30 14:54:45 +01:00
b5a3f5ece2 woodpeckerci: remove when clause
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
It's preventing build from running when pushing to a PR branch
2023-07-29 20:30:57 +01:00
95fce1e6d8 clippy fix
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline was successful
2023-07-29 20:23:38 +01:00
9cb02f6790 clean up Error 2023-07-29 20:22:57 +01:00
7c752b7ba7 fold FetchEnv into NetworkEnv 2023-07-29 20:22:47 +01:00
f5974acd25 extracted append_line to FileEnv 2023-07-29 20:13:28 +01:00
95ed1735e7 remove FeedEnv 2023-07-29 20:03:50 +01:00
f211823884 move feed::get from FetchEnv into a pure function 2023-07-29 19:56:14 +01:00
73b9ad960b add NetworkEnv 2023-07-29 19:41:50 +01:00
87a53f8426 rename subscriptions/rs as file/read.rs 2023-07-29 19:23:03 +01:00
5931014636 extracted File::open use into FileEnv 2023-07-29 19:09:38 +01:00
92e369beab clippy fixes 2023-07-29 18:42:14 +01:00
e318f78250 add justfile with coverage creation rules 2023-07-28 20:23:04 +01:00
fd24f08428 woodpeckerci: revert when to build step
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-28 19:48:37 +01:00
d23fd7e590 woodpeckerci: promote when to root 2023-07-28 19:42:26 +01:00
040e37d2a9 woodpeckerci: always use latest run image 2023-07-28 19:39:08 +01:00
5e5613dd01 woodpeckerci: top level is steps
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-28 19:36:08 +01:00
a25d16efe2 only run ci on PR and push to main
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-28 19:32:45 +01:00
f29cab85a1 Merge branch 'main' into i5-add-tests
* main:
  i5-add-tests (part 2) (#7)
2023-07-28 18:36:01 +01:00
1219eef089 add tests for history::find
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-28 07:50:55 +01:00
20a4ef59d9 add test for history::add 2023-07-27 21:39:55 +01:00
defa57de25 extract test_utils module 2023-07-27 21:20:37 +01:00
d7729cc2a3 rename get as reqwest_blocking_get
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-27 19:48:44 +01:00
d8861d6f7e Add tests for feed::find
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-25 19:57:31 +01:00
50da088518 feed::find uses fetch::get 2023-07-25 19:36:56 +01:00
b8a3770a1a clippy fix 2023-07-25 19:25:45 +01:00
1fd5df7151 Use Env to pass in functions
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-25 19:24:15 +01:00
Paul Campbell
9087482672 Merge branch 'main' into i5-add-tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-25 17:04:40 +01:00
8080352277 add stub for testing feed::find 2023-07-25 17:02:31 +01:00