anchor.diff:    Idx = init_idx(Dir, Events),
     ok = gululog_idx:flush_close(Idx),
     Config;
  -t_scan_file_to_locate({'end', _Config}) -> ok;
  -t_scan_file_to_locate(Config) when is_list(Config) ->
  +t_read_file_entry_to_locate({'end', _Config}) -> ok;
  +t_read_file_entry_to_locate(Config) when is_list(Config) ->
     Dir = ?config(dir),
     Idx0 = gululog_idx:init(Dir),
     ?assertEqual(false, gululog_idx:locate(Dir, Idx0, 4)),
  
positive.code:   ?assertEqual(4, gululog_idx:get_latest_logid(Index)),
    ok.
  
  %% @doc Delete log entry from index cache, scan idx file to locate.
  t_scan_file_to_locate({init, Config}) ->
    Dir = ?config(dir),
    Events = [ {append, 0, 1}
             , {append, 1, 10}
  
negative.code: %% cases
  -export([ t_basic_flow/1
          , t_init_from_existing/1
          , t_read_file_entry_to_locate/1
          , t_truncated_latest_logid/1
          ]).
  
  -define(config(KEY), proplists:get_value(KEY, Config)).
  