forked from tmc/langchaingo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestify_imports.txt
More file actions
128 lines (124 loc) · 4.77 KB
/
testify_imports.txt
File metadata and controls
128 lines (124 loc) · 4.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
Files importing testify/assert or testify/require:
./agents/conversational_test.go
./agents/executor_test.go
./agents/markl_test.go
./callbacks/agent_final_stream_test.go
./chains/chains_test.go
./chains/constitution/constitutional_test.go
./chains/constitutional_test.go
./chains/conversation_test.go
./chains/conversational_retrieval_qa_test.go
./chains/llm_azure_test.go
./chains/llm_math_test.go
./chains/llm_test.go
./chains/map_reduce_test.go
./chains/map_rerank_documents_test.go
./chains/question_answering_test.go
./chains/retrieval_qa_test.go
./chains/sequential_test.go
./chains/sql_database_test.go
./chains/stuff_documents_test.go
./chains/summarization_test.go
./chains/transform_test.go
./documentloaders/assemblyai_test.go
./documentloaders/csv_test.go
./documentloaders/html_test.go
./documentloaders/notion_test.go
./documentloaders/pdf_test.go
./documentloaders/text_test.go
./embeddings/bedrock/bedrock_test.go
./embeddings/cybertron/cybertron_test.go
./embeddings/embedding_test.go
./embeddings/huggingface/huggingface_test.go
./embeddings/jina/jina_test.go
./embeddings/openai_test.go
./embeddings/vector_math_test.go
./embeddings/vertexai_palm_test.go
./embeddings/voyageai/voyageai_test.go
./internal/imageutil/download_test.go
./internal/sliceutil/slice_test.go
./llms/anthropic/internal/anthropicclient/anthropicclient_test.go
./llms/cache/cache_test.go
./llms/cache/inmemory/inmemory_test.go
./llms/cloudflare/internal/cloudflareclient/cloudflareclient_test.go
./llms/cohere/internal/cohereclient/cohereclient_test.go
./llms/count_tokens_test.go
./llms/ernie/internal/ernieclient/ernieclient_test.go
./llms/googleai/shared_test/shared_test.go
./llms/huggingface/internal/huggingfaceclient/huggingfaceclient_test.go
./llms/llamafile/internal/llamafileclient/llamafileclient_test.go
./llms/llamafile/llamafilellm_test.go
./llms/maritaca/internal/maritacaclient/maritacaclient_test.go
./llms/maritaca/maritaca_test.go
./llms/mistral/mistralembed_test.go
./llms/ollama/internal/ollamaclient/ollamaclient_test.go
./llms/ollama/ollama_test.go
./llms/openai/internal/openaiclient/chat_test.go
./llms/openai/internal/openaiclient/openaiclient_test.go
./llms/openai/multicontent_test.go
./llms/openai/structured_output_test.go
./memory/buffer_test.go
./memory/chat_test.go
./memory/mongo/mongo_chat_history_test.go
./memory/sqlite3/sqlite3_history_test.go
./memory/token_buffer_test.go
./memory/window_buffer_test.go
./outputparser/comma_seperated_list_test.go
./outputparser/structured_test.go
./prompts/chat_prompt_template_test.go
./prompts/prompt_test.go
./prompts/templates_test.go
./textsplitter/markdown_splitter_test.go
./textsplitter/recursive_character_test.go
./textsplitter/token_splitter_test.go
./tools/duckduckgo/ddg_test.go
./tools/perplexity/perplexity_test.go
./tools/serpapi/serpapi_test.go
./tools/sqldatabase/mysql/mysql_test.go
./tools/sqldatabase/postgresql/postgresql_test.go
./tools/sqldatabase/sqlite3/sqlite3_test.go
./tools/wikipedia/wikipedia_test.go
./tools/zapier/internal/client_test.go
./tools/zapier/zapier_test.go
./vectorstores/alloydb/vectorstore_container_test.go
./vectorstores/alloydb/vectorstore_test.go
./vectorstores/azureaisearch/azureaisearch_httprr_test.go
./vectorstores/bedrockknowledgebases/bedrockknowledgebases_test.go
./vectorstores/chroma/chroma_test.go
./vectorstores/cloudsql/vectorstore_container_test.go
./vectorstores/milvus/milvus_test.go
./vectorstores/mongovector/mongovector_test.go
./vectorstores/opensearch/opensearch_test.go
./vectorstores/pgvector/pgvector_test.go
./vectorstores/pinecone/pinecone_test.go
./vectorstores/qdrant/qdrant_test.go
./vectorstores/redisvector/index_schema_test.go
./vectorstores/redisvector/redis_vector_test.go
./vectorstores/weaviate/weaviate_httprr_test.go
./vectorstores/weaviate/weaviate_test.go
Total: 97 files
Most commonly used testify functions:
- require.NoError (729 occurrences)
- assert.Equal (107 occurrences)
- assert.NotEmpty (90 occurrences)
- require.Equal (70 occurrences)
- require.Contains (51 occurrences)
- require.Len (50 occurrences)
- require.True (44 occurrences)
- assert.Len (44 occurrences)
- assert.NotNil (34 occurrences)
- assert.Regexp (25 occurrences)
- require.Error (23 occurrences)
- require.NotEmpty (16 occurrences)
- assert.Contains (12 occurrences)
- require.ErrorIs (9 occurrences)
- require.NotContains (8 occurrences)
- assert.True (8 occurrences)
- assert.NotContains (6 occurrences)
- require.NotNil (4 occurrences)
- assert.NotZero (4 occurrences)
These would need to be replaced with standard library testing methods like:
- require.NoError(t, err) → if err != nil { t.Fatal(err) }
- assert.Equal(t, expected, actual) → if expected != actual { t.Errorf("expected %v, got %v", expected, actual) }
- require.Equal(t, expected, actual) → if expected != actual { t.Fatalf("expected %v, got %v", expected, actual) }
- etc.