Improve code coverage

This commit is contained in:
Alex Orlenko
2021-06-17 00:11:58 +01:00
parent 3b94b4e86f
commit bf286751fa
6 changed files with 27 additions and 5 deletions
+1
View File
@@ -180,6 +180,7 @@ pub enum Error {
/// A specialized `Result` type used by `mlua`'s API.
pub type Result<T> = StdResult<T, Error>;
#[cfg(not(tarpaulin_include))]
impl fmt::Display for Error {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
match *self {
+2 -1
View File
@@ -93,7 +93,7 @@ struct MemoryInfo {
/// More information can be found in the Lua 5.x [documentation].
///
/// [documentation]: https://www.lua.org/manual/5.4/manual.html#2.5
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GCMode {
Incremental,
/// Requires `feature = "lua54"`
@@ -525,6 +525,7 @@ impl Lua {
// Executes module entrypoint function, which returns only one Value.
// The returned value then pushed to the Lua stack.
#[doc(hidden)]
#[cfg(not(tarpaulin_include))]
pub fn entrypoint1<'lua, 'callback, R, F>(&'lua self, func: F) -> Result<c_int>
where
'lua: 'callback,