aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 9734804..6326831 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -20,6 +20,29 @@ async fn main() {
// Path::new("/tmp/grsvp"),
// ).unwrap();
+ let test_repos = vec![
+ github::Repo {
+ id: 18086664,
+ name: "angular.js".to_owned(),
+ description: None,
+ fork: true,
+ git_url: "git://github.com/teddywing/angular.js.git".to_owned(),
+ default_branch: "master".to_owned(),
+ updated_at: "2014-03-25T06:55:16Z".to_owned(),
+ },
+ github::Repo {
+ id: 312106271,
+ name: "apple-developer-objc".to_owned(),
+ description: Some(
+ "A user script that forces Apple Developer documentation to use Objective-C".to_owned(),
+ ),
+ fork: false,
+ git_url: "git://github.com/teddywing/apple-developer-objc.git".to_owned(),
+ default_branch: "master".to_owned(),
+ updated_at: "2020-11-11T22:49:53Z".to_owned(),
+ },
+ ];
+
let mut db = database::Db::connect("test.db").await.unwrap();
// db.create().await.unwrap();
@@ -31,5 +54,9 @@ async fn main() {
// Update updated_at
// fetch
- dbg!(db.repo_get(2).await.unwrap());
+ for repo in test_repos {
+ let r = db.repo_get(repo.id).await.unwrap();
+
+ dbg!(r);
+ }
}