anchor.diff:         end
         },
   
  -      {"parse_line valid metric tests",
  -       generator,
  -       fun() ->
  -               Tests = [{<<"label:1|m">>, #shp_metric{key = <<"label">>,
  -                                                      value = 1,
  -                                                      type = 'm'}},
  -
  -                        {<<"label:123|h">>, #shp_metric{key = <<"label">>,
  -                                                        value = 123,
  -                                                        type = 'h'}},
  -
  -                        {<<"x:-123|g">>, #shp_metric{key = <<"x">>,
  -                                                        value = -123,
  -                                                        type = 'g'}},
  -
  -
  -                        {<<"x:123|h">>, #shp_metric{key = <<"x">>,
  -                                                        value = 123,
  -                                                        type = 'h'}},
  +      {"parse_metric valid metric tests",
  +       generator,
  +       fun() ->
  +               Tests = [{<<"label:1|m">>,
  +                         #shp_metric{key = <<"label">>, value = 1, type = 'm'}},
  +
  +                        {<<"label:123|h">>,
  +                         #shp_metric{key = <<"label">>, value = 123,
  +                                     type = 'h'}},
  +
  +                        {<<"x:-123|g">>,
  +                         #shp_metric{key = <<"x">>, value = -123, type = 'g'}},
  +
  +
  +                        {<<"x:123|h">>,
  +                         #shp_metric{key = <<"x">>, value = 123, type = 'h'}},
   
                           % sample rate
  -                        {<<"x:123|h|@0.43">>, #shp_metric{key = <<"x">>,
  -                                                          value = 123,
  -                                                          type = 'h',
  -                                                          sample_rate = 0.43}}
  -                        
  +                        {<<"x:123|h|@0.43">>,
  +                         #shp_metric{key = <<"x">>, value = 123, type = 'h',
  +                                     sample_rate = 0.43}}
                          ],
  -               [ ?_assertEqual(Expect, parse_line(In)) ||
  +               [ ?_assertEqual(Expect, parse_metric(In)) ||
                     {In, Expect} <- Tests ]
          end
         },
  
positive.code:                
        },
  
        {"parse_line invalid metric tests",
         generator,
         fun() ->
                 % TODO
                 []
         end
        }
       ]}.
               
  
  
negative.code: 
  -include_lib("eunit/include/eunit.hrl").
  
  -define(SHP_VERSION, 1).
  
  -type shp_metric_type() :: 'm' | 'mr' | 'g' | 'h'.
  
  -record(shp_metric, {key :: binary(),
  