diff --git a/lib/meta_logger/slicer/default_impl.ex b/lib/meta_logger/slicer/default_impl.ex index 982657c..12948b2 100644 --- a/lib/meta_logger/slicer/default_impl.ex +++ b/lib/meta_logger/slicer/default_impl.ex @@ -4,7 +4,7 @@ defmodule MetaLogger.Slicer.DefaultImpl do """ @behaviour MetaLogger.Slicer - + @doc """ Returns sliced log entries according to the given max entry length. diff --git a/lib/meta_logger/slicer/utf8_impl.ex b/lib/meta_logger/slicer/utf8_impl.ex index b861c6f..5af26ab 100644 --- a/lib/meta_logger/slicer/utf8_impl.ex +++ b/lib/meta_logger/slicer/utf8_impl.ex @@ -29,10 +29,10 @@ defmodule MetaLogger.Slicer.Utf8Impl do """ @impl MetaLogger.Slicer @spec slice(binary(), MetaLogger.Slicer.max_entry_length()) :: [String.t()] - def slice(entry, max_entry_length) - when max_enty_length == :infinity + def slice(entry, max_entry_length) + when max_entry_length == :infinity when byte_size(entry) <= max_entry_length, - do: [entry] + do: [entry] def slice(entry, max_entry_length) do do_slice(entry, max_entry_length, [], [], 0) diff --git a/test/meta_logger/slicer_test.exs b/test/meta_logger/slicer/default_impl_test.exs similarity index 97% rename from test/meta_logger/slicer_test.exs rename to test/meta_logger/slicer/default_impl_test.exs index 6120c9b..fe7e5a2 100644 --- a/test/meta_logger/slicer_test.exs +++ b/test/meta_logger/slicer/default_impl_test.exs @@ -1,4 +1,4 @@ -defmodule MetaLogger.SlicerTest do +defmodule MetaLogger.Slicer.DefaultImplTest do use ExUnit.Case, async: true alias MetaLogger.Slicer.DefaultImpl, as: Subject diff --git a/test/meta_logger/utf8_slicer_test.exs b/test/meta_logger/slicer/utf8_impl_test.exs similarity index 97% rename from test/meta_logger/utf8_slicer_test.exs rename to test/meta_logger/slicer/utf8_impl_test.exs index 3c43075..0972c1b 100644 --- a/test/meta_logger/utf8_slicer_test.exs +++ b/test/meta_logger/slicer/utf8_impl_test.exs @@ -1,4 +1,4 @@ -defmodule MetaLogger.Utf8SlicerTest do +defmodule MetaLogger.Slicer.Utf8ImplTest do use ExUnit.Case, async: true alias MetaLogger.Slicer.Utf8Impl, as: Subject