From 0e33d3adfb5069b20622e5ed9393d10b8cc17b40 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Tue, 16 Jul 2024 11:37:45 +0900 Subject: [PATCH] test: improve linear performance test names Use "test_linear_performance_XXX" style. --- test/parse/test_attlist.rb | 2 +- test/parse/test_cdata.rb | 2 +- test/parse/test_character_reference.rb | 2 +- test/parse/test_comment.rb | 4 ++-- test/parse/test_document_type_declaration.rb | 4 ++-- test/parse/test_element.rb | 2 +- test/parse/test_entity_declaration.rb | 2 +- test/parse/test_processing_instruction.rb | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/parse/test_attlist.rb b/test/parse/test_attlist.rb index eee9309c..c1b4376c 100644 --- a/test/parse/test_attlist.rb +++ b/test/parse/test_attlist.rb @@ -7,7 +7,7 @@ module REXMLTests class TestParseAttlist < Test::Unit::TestCase include Test::Unit::CoreAssertions - def test_gt_linear_performance + def test_linear_performance_gt seq = [10000, 50000, 100000, 150000, 200000] assert_linear_performance(seq, rehearsal: 10) do |n| REXML::Document.new(']>') diff --git a/test/parse/test_cdata.rb b/test/parse/test_cdata.rb index 9e8fa8b2..b5f1a3bc 100644 --- a/test/parse/test_cdata.rb +++ b/test/parse/test_cdata.rb @@ -7,7 +7,7 @@ module REXMLTests class TestParseCData < Test::Unit::TestCase include Test::Unit::CoreAssertions - def test_gt_linear_performance + def test_linear_performance_gt seq = [10000, 50000, 100000, 150000, 200000] assert_linear_performance(seq, rehearsal: 10) do |n| REXML::Document.new('" * n + ' ]]>') diff --git a/test/parse/test_character_reference.rb b/test/parse/test_character_reference.rb index 8ddeccaa..bf8d2190 100644 --- a/test/parse/test_character_reference.rb +++ b/test/parse/test_character_reference.rb @@ -7,7 +7,7 @@ module REXMLTests class TestParseCharacterReference < Test::Unit::TestCase include Test::Unit::CoreAssertions - def test_gt_linear_performance_many_preceding_zeros + def test_linear_performance_many_preceding_zeros seq = [10000, 50000, 100000, 150000, 200000] assert_linear_performance(seq, rehearsal: 10) do |n| REXML::Document.new('') diff --git a/test/parse/test_comment.rb b/test/parse/test_comment.rb index 50c765f5..b7892232 100644 --- a/test/parse/test_comment.rb +++ b/test/parse/test_comment.rb @@ -122,14 +122,14 @@ def test_after_root assert_equal(" ok comment ", events[:comment]) end - def test_gt_linear_performance + def test_linear_performance_top_level_gt seq = [10000, 50000, 100000, 150000, 200000] assert_linear_performance(seq, rehearsal: 10) do |n| REXML::Document.new('') end end - def test_gt_linear_performance_in_element + def test_linear_performance_in_element_gt seq = [10000, 50000, 100000, 150000, 200000] assert_linear_performance(seq, rehearsal: 10) do |n| REXML::Document.new('') diff --git a/test/parse/test_document_type_declaration.rb b/test/parse/test_document_type_declaration.rb index 3c3371ea..490a27d4 100644 --- a/test/parse/test_document_type_declaration.rb +++ b/test/parse/test_document_type_declaration.rb @@ -280,7 +280,7 @@ def test_notation_attlist doctype.children.collect(&:class)) end - def test_gt_linear_performance_malformed_entity + def test_linear_performance_percent_gt seq = [10000, 50000, 100000, 150000, 200000] assert_linear_performance(seq, rehearsal: 10) do |n| begin @@ -290,7 +290,7 @@ def test_gt_linear_performance_malformed_entity end end - def test_gt_linear_performance_comment + def test_linear_performance_comment_gt seq = [10000, 50000, 100000, 150000, 200000] assert_linear_performance(seq, rehearsal: 10) do |n| REXML::Document.new('" * n + ' -->]>') diff --git a/test/parse/test_element.rb b/test/parse/test_element.rb index 261f25c3..2b0746ea 100644 --- a/test/parse/test_element.rb +++ b/test/parse/test_element.rb @@ -125,7 +125,7 @@ def test_after_empty_element_tag_root end end - def test_gt_linear_performance_attribute_value + def test_linear_performance_attribute_value_gt seq = [10000, 50000, 100000, 150000, 200000] assert_linear_performance(seq, rehearsal: 10) do |n| REXML::Document.new('" * n + '">') diff --git a/test/parse/test_entity_declaration.rb b/test/parse/test_entity_declaration.rb index 07529016..7d750b90 100644 --- a/test/parse/test_entity_declaration.rb +++ b/test/parse/test_entity_declaration.rb @@ -33,7 +33,7 @@ def test_empty DETAIL end - def test_gt_linear_performance + def test_linear_performance_gt seq = [10000, 50000, 100000, 150000, 200000] assert_linear_performance(seq, rehearsal: 10) do |n| REXML::Document.new('' * n + '">') diff --git a/test/parse/test_processing_instruction.rb b/test/parse/test_processing_instruction.rb index ac4c2ff0..7943cd3c 100644 --- a/test/parse/test_processing_instruction.rb +++ b/test/parse/test_processing_instruction.rb @@ -74,7 +74,7 @@ def test_after_root assert_equal("abc", events[:processing_instruction]) end - def test_gt_linear_performance + def test_linear_performance_gt seq = [10000, 50000, 100000, 150000, 200000] assert_linear_performance(seq, rehearsal: 10) do |n| REXML::Document.new('" * n + ' ?>')