<commit_before>package jp.toastkid.yobidashi.browser.webview

import android.webkit.WebView
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner

/**
 * @author toastkidjp
 */
@RunWith(RobolectricTestRunner::class)
class SelectedTextExtractorTest {

    @Test
    fun test() {
        val selectedTextExtractor = SelectedTextExtractor()
        val webView = mockk<WebView>()
        every { webView.evaluateJavascript(any(), any()) }.answers {  }

        selectedTextExtractor.withAction(webView, {})
        verify(atMost = 1) { webView.evaluateJavascript(any(), any()) }
    }

}<commit_msg>refactor #559 Remove RunWith Robolectric.<commit_after>package jp.toastkid.yobidashi.browser.webview

import android.webkit.WebView
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.junit.Test

/**
 * @author toastkidjp
 */
class SelectedTextExtractorTest {

    @Test
    fun test() {
        val selectedTextExtractor = SelectedTextExtractor()
        val webView = mockk<WebView>()
        every { webView.evaluateJavascript(any(), any()) }.answers {  }

        selectedTextExtractor.withAction(webView, {})
        verify(atMost = 1) { webView.evaluateJavascript(any(), any()) }
    }

}
{'fraction_non_alphanumeric': 0.11596385542168675, 'fraction_numerical': 0.0037650602409638554, 'mean_word_length': 3.8503649635036497, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7491435', 'n_tokens_mistral': 450, 'n_tokens_neox': 416, 'n_words': 77}