Sha256: 2e024e2056a4e7763c7932f0500c08c02a532c077a210774bcd745659bf15248
Contents?: true
Size: 983 Bytes
Versions: 1
Compression:
Stored size: 983 Bytes
Contents
require "base64" describe Dap::Filter::FilterDecodeGquicVersionsResult do describe '.decode' do let(:filter) { described_class.new(['data']) } context 'testing gquic valid input' do let(:decode) { filter.decode(Base64.decode64("DQAAAAECAwQFUTA0NFEwNDNRMDM5UTAzNQ=="))} it 'returns an hash w/ versions as list of versions' do expect(decode).to eq({"versions"=> ["Q044","Q043","Q039","Q035"]}) end end context 'testing valid string but not gquic versions' do let(:decode) { filter.decode("H044R043E039L035") } it 'returns nil' do expect(decode).to eq(nil) end end context 'testing gquic empty string input' do let(:decode) { filter.decode("") } it 'returns nil' do expect(decode).to eq(nil) end end context 'testing gquic nil input' do let(:decode) { filter.decode(nil) } it 'returns nil' do expect(decode).to eq(nil) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dap-0.1.23 | spec/dap/filter/gquic_filter_spec.rb |