Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root: Add test cases for is_xxx() #1291

Merged
merged 5 commits into from Nov 25, 2023
Merged

Commits on Nov 25, 2023

  1. Add test cases for DBTREE::Root::is_2ch()

    引数のURLドメインが2ch.net, 5ch.net, bbspink.comの掲示板であるか
    チェックする関数のテストを追加します。 関数はRootクラスの
    privateメンバーですがテストのためpublicに変更します。
    `is_2ch()`は静的メンバー関数(static)として定義されています。
    ma8ma committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    fdccebf View commit details
    Browse the repository at this point in the history
  2. Add test cases for DBTREE::Root::is_JBBS()

    引数のURLドメインがしたらば掲示板であるかチェックする関数のテストを
    追加します。 関数はRootクラスのprivateメンバーですがテストのため
    publicに変更します。
    `is_JBBS()`は静的メンバー関数(static)として定義されています。
    ma8ma committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    f6376f2 View commit details
    Browse the repository at this point in the history
  3. Add test cases for DBTREE::Root::is_machi()

    引数のURLドメインがまちBBSの掲示板であるかチェックする関数のテストを
    追加します。 関数はRootクラスのprivateメンバーですがテストのため
    publicに変更します。
    `is_machi()`は静的メンバー関数(static)として定義されています。
    ma8ma committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    ea97c34 View commit details
    Browse the repository at this point in the history
  4. Add test cases for DBTREE::Root::is_vip2ch()

    引数のURLドメインがVIPサービスの掲示板であるかチェックする関数の
    テストを追加します。 関数はRootクラスのprivateメンバーですが
    テストのためpublicに変更します。
    `is_vip2ch()`は静的メンバー関数(static)として定義されてます。
    ma8ma committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    4caeeee View commit details
    Browse the repository at this point in the history
  5. Add test cases for DBTREE::Root::is_local()

    引数のURLスキーマがfile:スキームであるかチェックする関数のテストを
    追加します。 関数はRootクラスのprivateメンバーですがテストのため
    publicに変更します。
    `is_local()`は静的メンバー関数(static)として定義されています。
    ma8ma committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    dd29134 View commit details
    Browse the repository at this point in the history