HomePhorge

Create base64_decode_string
b0a05e812427Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Create base64_decode_string

Previously, the code for Base64 decoding a hex string into
a binary string was provided inline within the body of the
provider methods that needed this behavior. This meant that
code was duplicated, but, more importantly, to test the
behaviour you would need to mock out the Base64.decode64
method, which is not the best case in the world.

To remedy this, this commit creates a new method, base64_decode_string,
and wraps the necessary behaviour within that method. This should
reduce code duplication and also make it easier to test.

Details

Provenance
Gary Larizza <gary@puppetlabs.com>Authored on
Jeff McCune <jeff@puppetlabs.com>Committed on Dec 5 2012, 12:49 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU297e93d8a761: Provide wrapper method for new StringIO objects
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rPUb0a05e812427: Create base64_decode_string (authored by Gary Larizza <gary@puppetlabs.com>).Dec 5 2012, 12:49 AM