()
| 51 | |
| 52 | impl Store { |
| 53 | fn new() -> Self { |
| 54 | Store { |
| 55 | questions: Arc::new(RwLock::new(Self::init())), |
| 56 | answers: Arc::new(RwLock::new(HashMap::new())), |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | fn init() -> HashMap<QuestionId, Question> { |
| 61 | let file = include_str!("../questions.json"); |
nothing calls this directly
no outgoing calls
no test coverage detected