Skip to content

Commit

Permalink
Merge pull request #6 from genedna/main
Browse files Browse the repository at this point in the history
Fix the clippy error and add test folder to .gitignore
  • Loading branch information
wangkirin authored Jan 5, 2024
2 parents 294b2b5 + 910faf1 commit a306b11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ Cargo.lock

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

test/
8 changes: 6 additions & 2 deletions src/unpack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::utils::context::PackageContext;
use crate::utils::pkcs::PKCS;
use std::path::PathBuf;
use std::str::FromStr;
use std::{env, fs};
use std::fs;

struct Unpacking {
file_path: PathBuf,
Expand Down Expand Up @@ -42,8 +42,12 @@ pub fn unpack_context(file_path: &str, cas_path: Vec<String>) -> Result<PackageC

#[test]
fn test_unpack() {
use super::utils::context::SIGTYPE;
use std::env;

use crate::utils::context::SIGTYPE;
use crate::pack::pack_context;


let mut pack_context = pack_context(env::current_dir().unwrap().to_str().unwrap());
fn sign() -> PKCS {
let mut pkcs1 = PKCS::new();
Expand Down

0 comments on commit a306b11

Please sign in to comment.