Skip to content

Commit 8f6eb2d

Browse files
committed
refactor: make generate_share_url and create_share_text public for testability
1 parent a93bbbd commit 8f6eb2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/presentation/sharing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl SharingService {
5151
}
5252
}
5353

54-
fn generate_share_url(
54+
pub fn generate_share_url(
5555
metrics: &SessionResult,
5656
platform: &SharingPlatform,
5757
repo_info: &Option<GitRepository>,
@@ -95,7 +95,7 @@ impl SharingService {
9595
}
9696
}
9797

98-
fn create_share_text(metrics: &SessionResult, repo_info: &Option<GitRepository>) -> String {
98+
pub fn create_share_text(metrics: &SessionResult, repo_info: &Option<GitRepository>) -> String {
9999
let best_rank = Rank::for_score(metrics.session_score);
100100
if let Some(repo) = repo_info {
101101
format!(

0 commit comments

Comments
 (0)