• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

technion / ruby-argon2 / 13153238078

05 Feb 2025 08:24AM UTC coverage: 99.342%. Remained the same
13153238078

push

github

technion
Version bump to make new release

302 of 304 relevant lines covered (99.34%)

118.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/test/error_test.rb
1
# frozen_string_literal: true
2

3
require 'test_helper'
4✔
4

5
class Argon2ErrorTest < Minitest::Test
4✔
6
  def test_ffi_fail
4✔
7
    assert_raises Argon2::ArgonHashFail do
4✔
8
      Argon2::Engine.hash_argon2i("password", "somesalt\0\0\0\0\0\0\0\0", 2, 1, 1)
4✔
9
    end
10
  end
11

12
  def test_memory_too_small
4✔
13
    assert_raises Argon2::ArgonHashFail do
4✔
14
      Argon2::Engine.hash_argon2id_encode("password",
4✔
15
                                          "somesalt\0\0\0\0\0\0\0\0", 2, 1, 1, nil)
16
    end
17
  end
18

19
  def test_salt_size
4✔
20
    assert_raises Argon2::ArgonHashFail do
4✔
21
      Argon2::Engine.hash_argon2id_encode("password", "somesalt", 2, 16, 1, nil)
4✔
22
    end
23
  end
24

25
  def test_passwd_null
4✔
26
    assert_raises Argon2::ArgonHashFail do
4✔
27
      Argon2::Engine.hash_argon2id_encode(nil, "somesalt\0\0\0\0\0\0\0\0", 2,
4✔
28
                                          16, 1, nil)
29
    end
30
  end
31
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc