C0 code coverage information

Generated on 2009-08-09 21:22:57 with etap 0.3.4.

Name Total lines Lines of code Total coverage Code coverage
couch_batch_save_sup ?? ?? ??
88% 
....1 % Licensed under the Apache License, Version 2.0 (the "License"); you may not
....2 % use this file except in compliance with the License. You may obtain a copy of
....3 % the License at
....4 %
....5 %   http://www.apache.org/licenses/LICENSE-2.0
....6 %
....7 % Unless required by applicable law or agreed to in writing, software
....8 % distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
....9 % WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
...10 % License for the specific language governing permissions and limitations under
...11 % the License.
...12 
...13 -module(couch_batch_save_sup).
...14 
...15 -behaviour(supervisor).
...16 
...17 -export([start_link/0,init/1]).
...18 
...19 start_link() ->
...20     supervisor:start_link({local, couch_batch_save_sup},
...21         couch_batch_save_sup, []).
...22 
...23 init([]) ->
...24     Self = self(),
...25     ok = couch_config:register(
...26         fun("couchdb", _) ->
...27             exit(Self, reload_config)
...28         end),
...29 
...30     BatchSize = list_to_integer(couch_config:get("couchdb",
...31         "batch_save_size","1000")),
...32     BatchInterval = list_to_integer(couch_config:get("couchdb",
...33         "batch_save_interval","1000")),
...34 
...35     Batch = {batch, {couch_batch_save, start_link, [BatchSize, BatchInterval]},
...36             permanent, 1000, worker, [batch_save]},
...37     {ok, {{one_for_one, 10, 3600}, [Batch]}}.

Generated using etap 0.3.4.