Skip to content

Commit 3a0704e

Browse files
committed
coverage test improvment
1 parent c769715 commit 3a0704e

19 files changed

Lines changed: 127 additions & 1106 deletions

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ jobs:
3939
components: rustfmt, clippy
4040

4141
- name: Cache cargo registry
42-
uses: actions/cache@v3
42+
uses: actions/cache@v4
4343
with:
4444
path: ~/.cargo/registry
4545
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
4646

4747
- name: Cache cargo index
48-
uses: actions/cache@v3
48+
uses: actions/cache@v4
4949
with:
5050
path: ~/.cargo/git
5151
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
5252

5353
- name: Cache cargo build
54-
uses: actions/cache@v3
54+
uses: actions/cache@v4
5555
with:
5656
path: target
5757
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}

.gitignore

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
1-
/target
1+
# Build artifacts
2+
/target/
3+
Cargo.lock
4+
5+
# IDE files
6+
.vscode/
7+
.idea/
8+
*.swp
9+
*.swo
10+
11+
# OS files
12+
.DS_Store
13+
Thumbs.db
14+
15+
# Environment files
16+
.env
17+
.env.local
18+
19+
# Test artifacts
20+
*.profraw
21+
22+
# Claude Code
223
.claude

README.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -392,28 +392,13 @@ See [CHANGELOG.md](CHANGELOG.md) for a detailed history of changes.
392392
- 🐛 [Issue Tracker](https://github.com/RustSandbox/serper/issues)
393393
- 💬 [Discussions](https://github.com/RustSandbox/serper/discussions)
394394

395+
## Author
396+
397+
This SDK is created and maintained by **Hamze Ghalebi**, CTO at [Remolab](https://remolab.fr). Remolab is a technology company focused on innovative software solutions and API integrations.
398+
395399
## Related Projects
396400

397401
- [Serper API](https://serper.dev) - The official Serper Google Search API
398402
- [reqwest](https://github.com/seanmonstar/reqwest) - The HTTP client used by this SDK
399403
- [serde](https://github.com/serde-rs/serde) - Serialization framework used for JSON handling
400404

401-
## Roadmap
402-
403-
### Version 0.2.0
404-
- [ ] Response caching support
405-
- [ ] Built-in rate limiting
406-
- [ ] Plugin architecture for custom transports
407-
- [ ] Metrics and observability integration
408-
409-
### Version 0.3.0
410-
- [ ] WebAssembly (WASM) support
411-
- [ ] Additional search endpoints (images, videos, news)
412-
- [ ] Advanced retry strategies
413-
- [ ] Configuration file support (YAML/TOML)
414-
415-
### Version 1.0.0
416-
- [ ] API stability guarantee
417-
- [ ] Full feature completeness
418-
- [ ] Comprehensive benchmarks
419-
- [ ] Production readiness certification

examples/basic_search.rs

Lines changed: 0 additions & 36 deletions
This file was deleted.

examples/debug_sdk.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// Debug version of SDK to see exactly what's being sent
1+
/// Debug version of SDK to see exactly what's being sent to the API
22
use serper_sdk::{SearchQuery, SearchService};
33
use std::env;
44

@@ -15,7 +15,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
1515
let service = SearchService::new(api_key.clone())?;
1616

1717
// Create a simple query
18-
let query = SearchQuery::new("Hamze Ghalebi CTO Remolab".to_string())?
18+
let query = SearchQuery::new("Rust programming language".to_string())?
1919
.with_country("us".to_string())
2020
.with_language("en".to_string());
2121

examples/demo.rs

Lines changed: 0 additions & 131 deletions
This file was deleted.

examples/env_config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
2020
// Create search service with environment config
2121
let service = SearchService::new(config.api_key.clone())?;
2222

23-
// Create a query for Hamze Ghalebi CTO Remolab
24-
let query = SearchQuery::new("Hamze Ghalebi CTO Remolab".to_string())?
23+
// Create a query for technology search
24+
let query = SearchQuery::new("modern web development frameworks".to_string())?
2525
.with_country("us".to_string())
2626
.with_language("en".to_string())
2727
.with_page(1);

examples/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/// Main example - Search for Hamze Ghalebi CTO Remolab
1+
/// Main example - comprehensive search demonstration
22
use serper_sdk::{SearchQuery, SearchService, SdkConfig};
33
use std::env;
44

55
#[tokio::main]
66
async fn main() -> Result<(), Box<dyn std::error::Error>> {
77
println!("🔍 Serper SDK - Main Example");
8-
println!("Searching for: Hamze Ghalebi CTO Remolab\n");
8+
println!("Comprehensive search example with multiple queries\n");
99

1010
// Load configuration from environment
1111
let config = match SdkConfig::from_env() {
@@ -27,13 +27,13 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
2727

2828
// Create queries for different searches
2929
let queries = vec![
30-
SearchQuery::new("Hamze Ghalebi CTO Remolab".to_string())?
30+
SearchQuery::new("Hamze Ghalebi CTO at Remolab".to_string())?
3131
.with_country("us".to_string())
3232
.with_language("en".to_string()),
33-
SearchQuery::new("Hamze Ghalebi Remolab".to_string())?
33+
SearchQuery::new("machine learning algorithms".to_string())?
3434
.with_country("us".to_string())
3535
.with_language("en".to_string()),
36-
SearchQuery::new("Remolab company".to_string())?
36+
SearchQuery::new("artificial intelligence applications".to_string())?
3737
.with_country("us".to_string())
3838
.with_language("en".to_string()),
3939
];

examples/simple.rs

Lines changed: 0 additions & 30 deletions
This file was deleted.

examples/test_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
1515
let client = reqwest::Client::new();
1616

1717
let payload = json!({
18-
"q": "Hamze Ghalebi CTO Remolab",
18+
"q": "JavaScript frameworks comparison",
1919
"gl": "us",
2020
"hl": "en"
2121
});

0 commit comments

Comments
 (0)