From Wiktionary, the free dictionary
could have sworn
- (informal) Is very sure about; especially when the thing in question is apparently not the case or could be doubted.
"You lost your bracelet?" "Yeah, but I could have sworn it was in the kitchen on the table when I last saw it."