Hi,
Switch bounce in your program would be visible as a train of pulses. Additional 0 when your switch line goes up an additional 1 when it goes down.
You can simulate that by generating the line signal yourself as a mixture of 1 and 0 with the zeros wanishing in time, leaving the 1s in the signal - button pressed. Or a mixture of 0 and 1 with 1 wanishing in time leaving 0 behind - button released.
You can control number of bounces and probability of bounce (decreasing in time in linear fashion for example) and other parameters. Pregenerate such a signal and feed it to your de-bouncing logic. Sorry for not giving exact solution.