<commit_before>/*
 * Use of this source code is governed by the MIT license that can be
 * found in the LICENSE file.
 */

package org.rust.ide.console

class RsConsoleFoldingTest : RsConsoleFoldingTestBase() {
    fun `test do not fold unrelated text`() = doFoldingTest("""
        //- lib.rs
        fn foo() {}
    """, """
        Hello world
        1 + 1 = 2
    """)

    fun `test single line`() = doFoldingTest("""
        //- lib.rs<commit_msg>T: disable RsConsoleFoldingTest on CI<commit_after>/*
 * Use of this source code is governed by the MIT license that can be
 * found in the LICENSE file.
 */

package org.rust.ide.console

class RsConsoleFoldingTest : RsConsoleFoldingTestBase() {
    override fun shouldRunTest(): Boolean = (System.getenv("CI") == null)

    fun `test do not fold unrelated text`() = doFoldingTest("""
        //- lib.rs
        fn foo() {}
    """, """
        Hello world
        1 + 1 = 2
    """)

    fun `test single line`() = doFoldingTest("""
        //- lib.rs
{'fraction_non_alphanumeric': 0.13306852035749753, 'fraction_numerical': 0.005958291956305859, 'mean_word_length': 2.4402730375426622, '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': '1562743', 'n_tokens_mistral': 315, 'n_tokens_neox': 304, 'n_words': 103}