<commit_before>module full_name_extraction_unit_test;

  import svunit_stable_pkg::*;
  `include "svunit_stable_defines.svh"

  string name = "full_name_extraction_ut";
  svunit_testcase svunit_ut;


  import svunit::full_name_extraction;

  full_name_extraction full_name_extr = new();


  function void build();
    svunit_ut = new(name);
  endfunction


  task setup();
    svunit_ut.setup();
  endtask


  task teardown();
    svunit_ut.teardown();
  endtask


  `SVUNIT_TESTS_BEGIN

    `SVTEST(test_defined_directly_under_package)
      `FAIL_UNLESS_STR_EQUAL(
          full_name_extr.get_full_name("tests::some_test extends svunit::test"),
          "tests.some_test")
    `SVTEST_END

  `SVUNIT_TESTS_END

endmodule<commit_msg>Confirm that extraction of full names for tests defined under classes works<commit_after>module full_name_extraction_unit_test;

  import svunit_stable_pkg::*;
  `include "svunit_stable_defines.svh"

  string name = "full_name_extraction_ut";
  svunit_testcase svunit_ut;


  import svunit::full_name_extraction;

  full_name_extraction full_name_extr = new();


  function void build();
    svunit_ut = new(name);
  endfunction


  task setup();
    svunit_ut.setup();
  endtask


  task teardown();
    svunit_ut.teardown();
  endtask


  `SVUNIT_TESTS_BEGIN

    `SVTEST(test_defined_directly_under_package)
      `FAIL_UNLESS_STR_EQUAL(
          full_name_extr.get_full_name("tests::some_test extends svunit::test"),
          "tests.some_test")
    `SVTEST_END


    `SVTEST(test_defined_under_class_in_package)
      `FAIL_UNLESS_STR_EQUAL(
          full_name_extr.get_full_name("tests::some_test_class.some_test extends svunit::test"),
          "tests.some_test_class.some_test")
    `SVTEST_END

  `SVUNIT_TESTS_END

endmodule
{'fraction_non_alphanumeric': 0.08798646362098139, 'fraction_numerical': 0.0, 'mean_word_length': 4.327327327327327, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2400940', 'n_tokens_mistral': 649, 'n_tokens_neox': 618, 'n_words': 97}