anchor.diff:      },
       #dir_spec{
           name = <<"get_file_dataset_summary_test">>,
  -        mode = 8#747,
           dataset = #dataset_spec{
               state = ?ATTACHED_DATASET,
               protection_flags = [?METADATA_PROTECTION_BIN]
  
positive.code: 
      ExpResult = #{
          <<"datasets">> => ExpDatasets2,
          <<"isLast">> => length(ExpDatasets2) < Limit
      },
      ?assertEqual(ExpResult, ListingResult).
  
  
negative.code:     Limit = maps:get(<<"limit">>, Params, 1000),
      Offset = maps:get(<<"offset">>, Params, 0),
  
      {ExpDatasets1, IsLast} = case Offset >= length(AllDatasets) of
          true ->
              {[], true};
          false ->
              SubList = lists:sublist(AllDatasets, Offset + 1, Limit),
              {SubList, lists:last(SubList) == lists:last(AllDatasets)}
      end,
      ExpDatasets2 = lists:map(fun({FileName, DatasetId, _Details}) ->
          #{
  