Skip to content

Refactor file creation and opening functions with privilege handling

Codecov / codecov/patch failed May 5, 2024 in 0s

28.33% of diff hit (target 67.68%)

View this Pull Request on Codecov

28.33% of diff hit (target 67.68%)

Annotations

Check warning on line 229 in src/api.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/api.rs#L229

Added line #L229 was not covered by tests

Check warning on line 228 in src/config.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/config.rs#L225-L228

Added lines #L225 - L228 were not covered by tests

Check warning on line 237 in src/config.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/config.rs#L234-L237

Added lines #L234 - L237 were not covered by tests

Check warning on line 58 in src/database/mod.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/database/mod.rs#L58

Added line #L58 was not covered by tests

Check warning on line 113 in src/database/mod.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/database/mod.rs#L110-L113

Added lines #L110 - L113 were not covered by tests

Check warning on line 120 in src/database/mod.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/database/mod.rs#L117-L120

Added lines #L117 - L120 were not covered by tests

Check warning on line 104 in src/mod.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/mod.rs#L104

Added line #L104 was not covered by tests

Check warning on line 110 in src/mod.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/mod.rs#L108-L110

Added lines #L108 - L110 were not covered by tests

Check warning on line 117 in src/mod.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/mod.rs#L115-L117

Added lines #L115 - L117 were not covered by tests

Check warning on line 122 in src/mod.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/mod.rs#L119-L122

Added lines #L119 - L122 were not covered by tests

Check warning on line 137 in src/mod.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/mod.rs#L134-L137

Added lines #L134 - L137 were not covered by tests

Check warning on line 70 in src/plugin/hashchecker.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/plugin/hashchecker.rs#L69-L70

Added lines #L69 - L70 were not covered by tests

Check warning on line 76 in src/plugin/hashchecker.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/plugin/hashchecker.rs#L76

Added line #L76 was not covered by tests

Check warning on line 82 in src/plugin/hashchecker.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/plugin/hashchecker.rs#L80-L82

Added lines #L80 - L82 were not covered by tests

Check warning on line 201 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L201

Added line #L201 was not covered by tests

Check warning on line 304 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L304

Added line #L304 was not covered by tests

Check warning on line 306 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L306

Added line #L306 was not covered by tests

Check warning on line 309 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L309

Added line #L309 was not covered by tests

Check warning on line 312 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L312

Added line #L312 was not covered by tests

Check warning on line 324 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L314-L324

Added lines #L314 - L324 were not covered by tests

Check warning on line 330 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L329-L330

Added lines #L329 - L330 were not covered by tests

Check warning on line 334 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L333-L334

Added lines #L333 - L334 were not covered by tests

Check warning on line 337 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L337

Added line #L337 was not covered by tests

Check warning on line 344 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L339-L344

Added lines #L339 - L344 were not covered by tests

Check warning on line 351 in src/sr/main.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/sr/main.rs#L347-L351

Added lines #L347 - L351 were not covered by tests