Grcov report - defaults.rs

1

    /// Default value for `shell` field

2

    ///

3

    /// ```

4

    /// # use mk_lib::defaults::default_shell;

5

    /// let a = default_shell();

6

    /// assert_eq!(a, "sh");

7

    /// ```

8
998

    pub fn default_shell() -> String {

9
998

      "sh".to_string()

10
998

    }

11

12

    /// Default value for `verbose` field

13

    ///

14

    /// ```

15

    /// # use mk_lib::defaults::default_verbose;

16

    /// let a = default_verbose();

17

    /// assert!(a);

18

    /// ```

19
288

    pub fn default_verbose() -> bool {

20
288

      true

21
288

    }

22

23

    /// Default value for `verbose` field

24

    ///

25

    /// ```

26

    /// # use mk_lib::defaults::default_ignore_errors;

27

    /// let a = default_ignore_errors();

28

    /// assert!(!a);

29

    /// ```

30
175

    pub fn default_ignore_errors() -> bool {

31
175

      false

32
175

    }

33

34

    /// Default value for `use_npm` -> `package_manager` field

35

    ///

36

    /// ```

37

    /// # use mk_lib::defaults::default_node_package_manager;

38

    /// let a = default_node_package_manager();

39

    /// assert_eq!(a, "npm");

40

    /// ```

41
22

    pub fn default_node_package_manager() -> String {

42
22

      "npm".to_string()

43
22

    }