<commit_before>%% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc.  All Rights Reserved.
%%
%% -------------------------------------------------------------------

-module(riak_moss_wm_bucket_test).

-export([bucket_test_/0]).

-include("riak_moss.hrl").
-include_lib("webmachine/include/webmachine.hrl").
-include_lib("eunit/include/eunit.hrl").

bucket_test_() ->
    {setup,
     fun riak_moss_wm_test_utils:setup/0,
     fun riak_moss_wm_test_utils:teardown/1,
     [fun create_bucket/0]}.

create_bucket() ->
    PathInfo = dict:from_list([{bucket, "create_bucket_test"}]),
    RD = #wm_reqdata{path_info = PathInfo},
    Ctx = #context{},<commit_msg>Add a doc and TODO<commit_after>%% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc.  All Rights Reserved.
%%
%% -------------------------------------------------------------------

-module(riak_moss_wm_bucket_test).

-export([bucket_test_/0]).

-include("riak_moss.hrl").
-include_lib("webmachine/include/webmachine.hrl").
-include_lib("eunit/include/eunit.hrl").

bucket_test_() ->
    {setup,
     fun riak_moss_wm_test_utils:setup/0,
     fun riak_moss_wm_test_utils:teardown/1,
     [fun create_bucket/0]}.

%% @doc Test to see that a newly created
%%      bucket has no keys.

%% TODO: 
%% The state needed for this test
%% scares me
create_bucket() ->
    PathInfo = dict:from_list([{bucket, "create_bucket_test"}]),
    RD = #wm_reqdata{path_info = PathInfo},
    Ctx = #context{},
{'fraction_non_alphanumeric': 0.3008793969849246, 'fraction_numerical': 0.01507537688442211, 'mean_word_length': 2.057581573896353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3848058', 'n_tokens_mistral': 529, 'n_tokens_neox': 510, 'n_words': 88}