Webqq/Recent/Friend.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 19 CC 2 SCAR 13.9
CC
2
Cov
0%
update
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 package Mojo::Webqq::Recent::Friend;
2 use strict;
3 use Mojo::Webqq::Base 'Mojo::Webqq::Model::Base';
4 has [qw(
5 id
6 type
7 )];
8  
9 sub update{
10 my $self = shift;
11 my $hash = shift;
12 for(keys %$self){
13 $self->{$_} = $hash->{$_} if exists $hash->{$_} ;
14 }
15 $self;
16 }
17 1;