func (p *mockPostgres) GetLaptopByID(id int) (models.Laptop, error) {
	var laptop models.Laptop

	if id > 2 {
		return laptop, errors.New("error")
	}

	return laptop, nil
}
// GetLaptopByID gets a laptop by id
GetLaptopByID gets a laptop by id
// GetLaptopByID gets a laptop by id
func (p *mockPostgres) GetLaptopByID(id int) (models.Laptop, error) {
	var laptop models.Laptop
	if id > 2 {
		return laptop, errors.New("error")
	}
	return laptop, nil
}
func ( p * mockPostgres ) GetLaptopByID ( id int ) ( models . Laptop , error ) { var laptop models . Laptop if id > 2 { return laptop , errors . New ( " " ) } return laptop , nil }
GetLaptopByID gets a laptop by id
GetLaptopByID gets a laptop by id