DocumentsList/Role/EntryWithoutEtag.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
update
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::Google::DocumentsList::Role::EntryWithoutEtag;
2 use Any::Moose '::Role';
3 with 'Net::Google::DataAPI::Role::Entry' => {-excludes => ['update']};
4  
5 sub update {
6 my ($self) = @_;
7 $self->atom or return;
8 # put without etag!
9 my $atom = $self->service->request(
10 {
11 method => 'PUT',
12 uri => $self->editurl,
13 content => $self->to_atom->as_xml,
14 content_type => 'application/atom+xml',
15 response_object => 'XML::Atom::Entry',
16 }
17 );
18 $self->container->sync;
19 $self->atom($atom);
20 }
21  
22 1;