"No test model available for integration tests"
"Model listing and information consistency"
"Model ID should typically contain '/' for org/model format"
"Model size should be reasonable (< 1TB)"
"Help documentation not available in test environment"
"No test model available for stress tests"
"No test model available for performance tests"

Model listing and information consistency

model$size_gb < 1000 is not TRUE

`actual`:       
`expected`: TRUE
Model size should be reasonable (< 1TB)

nchar(model$description) > 10 is not TRUE

`actual`:       
`expected`: TRUE

"description" %in% colnames(models) is not TRUE

`actual`:   FALSE
`expected`: TRUE

test_that("Model loading functions work correctly", {
# Test 1: edge_list_models() returns a data frame
test_that("edge_list_models returns valid data", {
# Test 2: edge_load_model with invalid path should error
test_that("edge_load_model handles invalid paths", {
# Test 3: edge_load_model with invalid parameters
test_that("edge_load_model handles invalid parameters", {
# Test 4: is_valid_model with invalid context
test_that("is_valid_model handles invalid contexts", {
test_that("Model loading with real model (if available)", {
test_that("edge_load_model works with valid GGUF file", {
test_that("edge_load_model works with different context sizes", {
ctx1 <- edge_load_model(model_path, n_ctx = 128)
ctx2 <- edge_load_model(model_path, n_ctx = 512)
# Large context (should work but may be slow)
ctx3 <- edge_load_model(model_path, n_ctx = 1024)
test_that("edge_load_model handles GPU layers parameter", {
# Should work with 0 GPU layers (CPU only)
ctx <- edge_load_model(model_path, n_ctx = 256, n_gpu_layers = 0)
skip("No test model available for real model loading tests")

"Model loading functions work correctly"
"Model loading with real model (if available)"
"edge_load_model works with valid GGUF file"
"edge_load_model works with different context sizes"
"edge_load_model handles GPU layers parameter"
"No test model available for real model loading tests"

`edge_load_model("nonexistent_model.gguf")` threw an error with unexpected message.
Expected match: "Failed to load GGUF model"
Actual message: "Model file does not exist: nonexistent_model.gguf"