Clover Coverage Report - SaveApp Coverage Report
Coverage timestamp: mar dic 23 2014 15:53:11 EST
../../../../img/srcFileCovDistChart9.png 12% of files have more coverage
8   42   5   1,6
0   29   0,62   5
5     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  OutlayAdapter       Line # 10 8 5 84,6% 0.84615386
 
No Tests
 
1    package com.loopback.androidapps.saveapp;
2   
3    import java.util.ArrayList;
4   
5    import android.content.Context;
6    import android.view.View;
7    import android.view.ViewGroup;
8    import android.widget.BaseAdapter;
9   
 
10    public class OutlayAdapter extends BaseAdapter {
11    public Context context;
12    public ArrayList<Outlay> items;
13    public boolean landscape;
14   
 
15  9 toggle public OutlayAdapter(Context _context, ArrayList<Outlay> list, boolean _landscape) {
16  9 this.context = _context;
17  9 items = list;
18  9 landscape = _landscape;
19    }
20   
 
21  100 toggle public int getCount() {
22  100 return items.size();
23    }
24   
 
25  0 toggle public Object getItem(int position) {
26  0 return items.get(position);
27    }
28   
 
29  10 toggle public long getItemId(int position) {
30  10 return position;
31    }
32   
 
33  42 toggle public View getView(int position, View convertView, ViewGroup parent) {
34  42 Outlay outlay = items.get(position);
35  42 return new OutlayListItem(context, outlay, position + 1, landscape);
36    }
37   
38    // public void remove(int position) {
39    // if ((position < items.size()) && (position >= 0))
40    // items.remove(position);
41    // }
42    }