Skip to content

Commit

Permalink
Improved test for relation_sizes method
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 20, 2024
1 parent 53ba89d commit c0187ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/space_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ def test_database_size

def test_relation_sizes
relation_sizes = database.relation_sizes
assert relation_sizes.find { |r| r[:relation] == "users" }
assert relation_sizes.find { |r| r[:relation] == "users_pkey" }
assert relation_sizes.find { |r| r[:relation] == "all_users" }
assert relation_sizes.find { |r| r[:relation] == "users" && r[:type] == "table" }
assert relation_sizes.find { |r| r[:relation] == "users_pkey" && r[:type] == "index" }
assert relation_sizes.find { |r| r[:relation] == "all_users" && r[:type] == "matview" }
end

def test_table_sizes
Expand Down

0 comments on commit c0187ce

Please sign in to comment.