<commit_before>package shodan

import (
	"testing"
	"net/http"
)

func TestClient_GetProtocols(t *testing.T) {
	setUpTestServe()
	defer tearDownTestServe()

	mux.HandleFunc(protocolsPath, func(w http.ResponseWriter, r *http.Request) {
		w.Write(getStub(t, "protocols"))
	})

	_, err := client.GetProtocols()
	if err != nil {
		t.Errorf("Client executeRequest returned error %v", err)
	}
}<commit_msg>check protocols length in test<commit_after>package shodan

import (
	"testing"
	"net/http"
)

func TestClient_GetProtocols(t *testing.T) {
	setUpTestServe()
	defer tearDownTestServe()

	mux.HandleFunc(protocolsPath, func(w http.ResponseWriter, r *http.Request) {
		w.Write(getStub(t, "protocols"))
	})

	protocols, err := client.GetProtocols()
	if err != nil {
		t.Errorf("Client executeRequest returned error %v", err)
	}

	if len(protocols) != 116 {
		t.Errorf("There should be 116 protocols in stub %v", err)
	}
}
{'fraction_non_alphanumeric': 0.13849509269356597, 'fraction_numerical': 0.006543075245365322, 'mean_word_length': 4.961038961038961, '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': '6781266', 'n_tokens_mistral': 351, 'n_tokens_neox': 333, 'n_words': 75}